From fd5eb79d1959cbd4b43f624e3e0779e5dd5e0f17 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 9 Dec 2019 21:05:28 +0100 Subject: LibGUI: Make GMenu inherit from CObject This is primarily to make it possible to pass a GMenu* where a CObject* is expected. --- Applications/PaintBrush/EraseTool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Applications/PaintBrush/EraseTool.cpp') diff --git a/Applications/PaintBrush/EraseTool.cpp b/Applications/PaintBrush/EraseTool.cpp index f9947edf65..bc83248487 100644 --- a/Applications/PaintBrush/EraseTool.cpp +++ b/Applications/PaintBrush/EraseTool.cpp @@ -48,7 +48,7 @@ void EraseTool::on_mousemove(GMouseEvent& event) void EraseTool::on_contextmenu(GContextMenuEvent& event) { if (!m_context_menu) { - m_context_menu = make(); + m_context_menu = GMenu::construct(); NonnullRefPtr eraser_color_toggler = GAction::create("Use secondary color", [&](GAction& action) { bool toggled = !m_use_secondary_color; -- cgit v1.2.3