summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCore
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-05-01 21:10:08 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-01 21:25:06 +0200
commit6cf59b6ae96aeeb8c0da957a07f913c4fa38467f (patch)
treeb3f1691b59c3280993d4a8c2866f821ae15c1875 /Userland/Libraries/LibCore
parent4e6f03a860595f9eb2628e12ddbd333e26b0622f (diff)
downloadserenity-6cf59b6ae96aeeb8c0da957a07f913c4fa38467f.zip
Everywhere: Turn #if *_DEBUG into dbgln_if/if constexpr
Diffstat (limited to 'Userland/Libraries/LibCore')
-rw-r--r--Userland/Libraries/LibCore/EventLoop.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Userland/Libraries/LibCore/EventLoop.cpp b/Userland/Libraries/LibCore/EventLoop.cpp
index 3fee668783..670a8d0932 100644
--- a/Userland/Libraries/LibCore/EventLoop.cpp
+++ b/Userland/Libraries/LibCore/EventLoop.cpp
@@ -393,9 +393,7 @@ void EventLoop::pump(WaitMode mode)
break;
}
} else if (event.type() == Event::Type::DeferredInvoke) {
-#if DEFERRED_INVOKE_DEBUG
- dbgln("DeferredInvoke: receiver = {}", *receiver);
-#endif
+ dbgln_if(DEFERRED_INVOKE_DEBUG, "DeferredInvoke: receiver = {}", *receiver);
static_cast<DeferredInvocationEvent&>(event).m_invokee(*receiver);
} else {
NonnullRefPtr<Object> protector(*receiver);