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/LibWeb/WebContentClient.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Userland/Libraries/LibWeb/WebContentClient.cpp') diff --git a/Userland/Libraries/LibWeb/WebContentClient.cpp b/Userland/Libraries/LibWeb/WebContentClient.cpp index cb06f27cf1..ce31a3c2ee 100644 --- a/Userland/Libraries/LibWeb/WebContentClient.cpp +++ b/Userland/Libraries/LibWeb/WebContentClient.cpp @@ -49,9 +49,7 @@ void WebContentClient::handle(const Messages::WebContentClient::DidInvalidateCon void WebContentClient::handle(const Messages::WebContentClient::DidChangeSelection&) { -#if SPAM_DEBUG - dbgln("handle: WebContentClient::DidChangeSelection!"); -#endif + dbgln_if(SPAM_DEBUG, "handle: WebContentClient::DidChangeSelection!"); m_view.notify_server_did_change_selection({}); } @@ -105,9 +103,7 @@ void WebContentClient::handle(const Messages::WebContentClient::DidHoverLink& me void WebContentClient::handle(const Messages::WebContentClient::DidUnhoverLink&) { -#if SPAM_DEBUG - dbgln("handle: WebContentClient::DidUnhoverLink!"); -#endif + dbgln_if(SPAM_DEBUG, "handle: WebContentClient::DidUnhoverLink!"); m_view.notify_server_did_unhover_link({}); } -- cgit v1.2.3