From 6cf59b6ae96aeeb8c0da957a07f913c4fa38467f Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Sat, 1 May 2021 21:10:08 +0200 Subject: Everywhere: Turn #if *_DEBUG into dbgln_if/if constexpr --- Userland/Libraries/LibGUI/Menu.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Userland/Libraries/LibGUI/Menu.cpp') diff --git a/Userland/Libraries/LibGUI/Menu.cpp b/Userland/Libraries/LibGUI/Menu.cpp index 2e0b905c7e..3d774ad385 100644 --- a/Userland/Libraries/LibGUI/Menu.cpp +++ b/Userland/Libraries/LibGUI/Menu.cpp @@ -87,9 +87,7 @@ int Menu::realize_menu(RefPtr default_action) unrealize_menu(); m_menu_id = WindowServerConnection::the().send_sync(m_name)->menu_id(); -#if MENU_DEBUG - dbgln("GUI::Menu::realize_menu(): New menu ID: {}", m_menu_id); -#endif + dbgln_if(MENU_DEBUG, "GUI::Menu::realize_menu(): New menu ID: {}", m_menu_id); VERIFY(m_menu_id > 0); for (size_t i = 0; i < m_items.size(); ++i) { auto& item = m_items[i]; -- cgit v1.2.3