summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfaissaloo <faissaloo@gmail.com>2019-06-16 21:07:55 +0100
committerfaissaloo <faissaloo@gmail.com>2019-06-16 21:07:55 +0100
commit54005e69425f0390d700a8e4cad6da736e83a5b3 (patch)
tree444726fbdd4256cc06de63b61f459c83fe160c6d
parent55e115b0cd0826db2a324c3ea0ee83d54e4ba298 (diff)
downloadserenity-54005e69425f0390d700a8e4cad6da736e83a5b3.zip
GWindow: Get rid of superflous variable
-rw-r--r--LibGUI/GWindow.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/LibGUI/GWindow.cpp b/LibGUI/GWindow.cpp
index 837c29620a..cf13d8a24c 100644
--- a/LibGUI/GWindow.cpp
+++ b/LibGUI/GWindow.cpp
@@ -288,10 +288,9 @@ void GWindow::event(CEvent& event)
auto found_widget = m_hashed_potential_keybind_widgets.find(m_entered_keybind);
if (found_widget != m_hashed_potential_keybind_widgets.end()) {
m_keybind_mode = false;
- const auto& point = Point();
- auto event = make<GMouseEvent>(GEvent::MouseDown, point, 0, GMouseButton::Left, 0, 0);
+ auto event = make<GMouseEvent>(GEvent::MouseDown, Point(), 0, GMouseButton::Left, 0, 0);
found_widget->value->event(*event);
- event = make<GMouseEvent>(GEvent::MouseUp, point, 0, GMouseButton::Left, 0, 0);
+ event = make<GMouseEvent>(GEvent::MouseUp, Point(), 0, GMouseButton::Left, 0, 0);
found_widget->value->event(*event);
} else if (m_entered_keybind.length() >= m_max_keybind_length) {
m_keybind_mode = false;