summaryrefslogtreecommitdiff
path: root/LibGUI/GToolBar.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-25 12:43:52 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-25 12:43:52 +0100
commit2cfcbdc735e7578a22ed2f9ae25492a72abe3f3f (patch)
treeffbb4403f13fe7d105951e965180638907f3662d /LibGUI/GToolBar.cpp
parent0b957ed2b1cd6b4949c93c5b39b64b0caf060c12 (diff)
downloadserenity-2cfcbdc735e7578a22ed2f9ae25492a72abe3f3f.zip
AK: Add Retained<T>, like RetainPtr, but never null.
Also use some Clang attribute wizardry to get a warning for use-after-move.
Diffstat (limited to 'LibGUI/GToolBar.cpp')
-rw-r--r--LibGUI/GToolBar.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/LibGUI/GToolBar.cpp b/LibGUI/GToolBar.cpp
index 9cfffc8c25..a0069c0988 100644
--- a/LibGUI/GToolBar.cpp
+++ b/LibGUI/GToolBar.cpp
@@ -18,9 +18,8 @@ GToolBar::~GToolBar()
{
}
-void GToolBar::add_action(RetainPtr<GAction>&& action)
+void GToolBar::add_action(Retained<GAction>&& action)
{
- ASSERT(action);
GAction* raw_action_ptr = action.ptr();
auto item = make<Item>();
item->type = Item::Action;