diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-12-09 21:05:28 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-12-09 21:05:44 +0100 |
commit | fd5eb79d1959cbd4b43f624e3e0779e5dd5e0f17 (patch) | |
tree | 5898af512fb7afcdf185cf3dcec6ad449836022f /Applications/PaintBrush/EraseTool.cpp | |
parent | e9dda8d59261d021d046074f39bc2c0a140a723a (diff) | |
download | serenity-fd5eb79d1959cbd4b43f624e3e0779e5dd5e0f17.zip |
LibGUI: Make GMenu inherit from CObject
This is primarily to make it possible to pass a GMenu* where a CObject*
is expected.
Diffstat (limited to 'Applications/PaintBrush/EraseTool.cpp')
-rw-r--r-- | Applications/PaintBrush/EraseTool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<GMenu>(); + m_context_menu = GMenu::construct(); NonnullRefPtr<GAction> eraser_color_toggler = GAction::create("Use secondary color", [&](GAction& action) { bool toggled = !m_use_secondary_color; |