summaryrefslogtreecommitdiff
path: root/Applications/PaintBrush/LineTool.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-09 21:05:28 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-09 21:05:44 +0100
commitfd5eb79d1959cbd4b43f624e3e0779e5dd5e0f17 (patch)
tree5898af512fb7afcdf185cf3dcec6ad449836022f /Applications/PaintBrush/LineTool.cpp
parente9dda8d59261d021d046074f39bc2c0a140a723a (diff)
downloadserenity-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/LineTool.cpp')
-rw-r--r--Applications/PaintBrush/LineTool.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/PaintBrush/LineTool.cpp b/Applications/PaintBrush/LineTool.cpp
index e6c867ca32..03bc4761cd 100644
--- a/Applications/PaintBrush/LineTool.cpp
+++ b/Applications/PaintBrush/LineTool.cpp
@@ -70,7 +70,7 @@ void LineTool::on_keydown(GKeyEvent& event)
void LineTool::on_contextmenu(GContextMenuEvent& event)
{
if (!m_context_menu) {
- m_context_menu = make<GMenu>();
+ m_context_menu = GMenu::construct();
m_context_menu->add_action(GAction::create("1", [this](auto&) {
m_thickness = 1;
}));