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/LibHTTP/HttpJob.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Userland/Libraries/LibHTTP/HttpJob.cpp') diff --git a/Userland/Libraries/LibHTTP/HttpJob.cpp b/Userland/Libraries/LibHTTP/HttpJob.cpp index 96001bb0bc..d8c480c09a 100644 --- a/Userland/Libraries/LibHTTP/HttpJob.cpp +++ b/Userland/Libraries/LibHTTP/HttpJob.cpp @@ -17,9 +17,7 @@ void HttpJob::start() VERIFY(!m_socket); m_socket = Core::TCPSocket::construct(this); m_socket->on_connected = [this] { -#if CHTTPJOB_DEBUG - dbgln("HttpJob: on_connected callback"); -#endif + dbgln_if(CHTTPJOB_DEBUG, "HttpJob: on_connected callback"); on_socket_connected(); }; bool success = m_socket->connect(m_request.url().host(), m_request.url().port()); -- cgit v1.2.3