diff options
Diffstat (limited to 'Userland/Services/WindowServer/Menubar.h')
-rw-r--r-- | Userland/Services/WindowServer/Menubar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/WindowServer/Menubar.h b/Userland/Services/WindowServer/Menubar.h index d1c84f404d..03e10d14c5 100644 --- a/Userland/Services/WindowServer/Menubar.h +++ b/Userland/Services/WindowServer/Menubar.h @@ -17,7 +17,7 @@ class Menubar : public RefCounted<Menubar> , public Weakable<Menubar> { public: - static NonnullRefPtr<Menubar> create(ClientConnection& client, int menubar_id) { return adopt(*new Menubar(client, menubar_id)); } + static NonnullRefPtr<Menubar> create(ClientConnection& client, int menubar_id) { return adopt_ref(*new Menubar(client, menubar_id)); } ~Menubar(); ClientConnection& client() { return m_client; } |