mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
AK: Make dbgln_if() avoid evaluating the arguments when disabled
Naturally, this makes the `enabled` flag on dbgln() obsolete.
This commit is contained in:
parent
71de5433f8
commit
857cdee0d0
Notes:
sideshowbarker
2024-07-18 21:57:52 +09:00
Author: https://github.com/alimpfard
Commit: 857cdee0d0
Pull-request: https://github.com/SerenityOS/serenity/pull/5489
Reviewed-by: https://github.com/bgianfo
3 changed files with 10 additions and 8 deletions
|
@ -589,7 +589,7 @@ bool WindowManager::process_ongoing_window_resize(const MouseEvent& event, Windo
|
|||
|
||||
auto max_rect = maximized_window_rect(*m_resize_window);
|
||||
if (event.y() > max_rect.bottom()) {
|
||||
dbgln<RESIZE_DEBUG>("Should Maximize vertically");
|
||||
dbgln_if(RESIZE_DEBUG, "Should Maximize vertically");
|
||||
m_resize_window->set_vertically_maximized();
|
||||
m_resize_window = nullptr;
|
||||
m_resizing_mouse_button = MouseButton::None;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue