From 69dad3b9967bd4ab99aa30a2231de3e4e8552005 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Fri, 18 Jun 2021 01:44:12 +0200 Subject: [PATCH] WindowServer: Remove an unnecessary temporary variable --- Userland/Services/WindowServer/WindowFrame.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Userland/Services/WindowServer/WindowFrame.cpp b/Userland/Services/WindowServer/WindowFrame.cpp index 5c8063f501..04370ff94e 100644 --- a/Userland/Services/WindowServer/WindowFrame.cpp +++ b/Userland/Services/WindowServer/WindowFrame.cpp @@ -732,8 +732,7 @@ void WindowFrame::handle_mouse_event(MouseEvent const& event) return; } - auto menubar_rect = this->menubar_rect(); - if (menubar_rect.contains(event.position())) { + if (menubar_rect().contains(event.position())) { wm.clear_resize_candidate(); handle_menubar_mouse_event(event); return;