diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-02-25 12:43:52 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-02-25 12:43:52 +0100 |
commit | 2cfcbdc735e7578a22ed2f9ae25492a72abe3f3f (patch) | |
tree | ffbb4403f13fe7d105951e965180638907f3662d /LibGUI/GToolBar.h | |
parent | 0b957ed2b1cd6b4949c93c5b39b64b0caf060c12 (diff) | |
download | serenity-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.h')
-rw-r--r-- | LibGUI/GToolBar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LibGUI/GToolBar.h b/LibGUI/GToolBar.h index 3338c3d55a..483eac238f 100644 --- a/LibGUI/GToolBar.h +++ b/LibGUI/GToolBar.h @@ -9,7 +9,7 @@ public: explicit GToolBar(GWidget* parent); virtual ~GToolBar() override; - void add_action(RetainPtr<GAction>&&); + void add_action(Retained<GAction>&&); void add_separator(); private: |