summaryrefslogtreecommitdiff
path: root/Libraries/LibGUI/GMenuBar.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibGUI/GMenuBar.h')
-rw-r--r--Libraries/LibGUI/GMenuBar.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Libraries/LibGUI/GMenuBar.h b/Libraries/LibGUI/GMenuBar.h
index 88f98eed7b..5802177cb9 100644
--- a/Libraries/LibGUI/GMenuBar.h
+++ b/Libraries/LibGUI/GMenuBar.h
@@ -1,7 +1,7 @@
#pragma once
#include <AK/Badge.h>
-#include <AK/Vector.h>
+#include <AK/NonnullOwnPtrVector.h>
#include <LibGUI/GMenu.h>
class GApplication;
@@ -11,7 +11,7 @@ public:
GMenuBar();
~GMenuBar();
- void add_menu(OwnPtr<GMenu>&&);
+ void add_menu(NonnullOwnPtr<GMenu>&&);
void notify_added_to_application(Badge<GApplication>);
void notify_removed_from_application(Badge<GApplication>);
@@ -21,5 +21,5 @@ private:
void unrealize_menubar();
int m_menubar_id { -1 };
- Vector<OwnPtr<GMenu>> m_menus;
+ NonnullOwnPtrVector<GMenu> m_menus;
};