From 54005e69425f0390d700a8e4cad6da736e83a5b3 Mon Sep 17 00:00:00 2001 From: faissaloo Date: Sun, 16 Jun 2019 21:07:55 +0100 Subject: [PATCH] GWindow: Get rid of superflous variable --- LibGUI/GWindow.cpp | 5 ++--- 1 file 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(GEvent::MouseDown, point, 0, GMouseButton::Left, 0, 0); + auto event = make(GEvent::MouseDown, Point(), 0, GMouseButton::Left, 0, 0); found_widget->value->event(*event); - event = make(GEvent::MouseUp, point, 0, GMouseButton::Left, 0, 0); + event = make(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;