From 2cfcbdc735e7578a22ed2f9ae25492a72abe3f3f Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 25 Feb 2019 12:43:52 +0100 Subject: AK: Add Retained, like RetainPtr, but never null. Also use some Clang attribute wizardry to get a warning for use-after-move. --- LibGUI/GToolBar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'LibGUI/GToolBar.h') 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&&); + void add_action(Retained&&); void add_separator(); private: -- cgit v1.2.3