mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
GWindow: Get rid of superflous variable
This commit is contained in:
parent
55e115b0cd
commit
54005e6942
Notes:
sideshowbarker
2024-07-19 13:34:14 +09:00
Author: https://github.com/faissaloo Commit: https://github.com/SerenityOS/serenity/commit/54005e69425 Pull-request: https://github.com/SerenityOS/serenity/pull/173 Reviewed-by: https://github.com/awesomekling
1 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue