From 36ef6a75e3418d88227e84ab175c0057e860c151 Mon Sep 17 00:00:00 2001 From: Nikita Kostovsky Date: Fri, 14 Nov 2025 11:18:21 +0100 Subject: fix merge artifacts --- src/httpservice.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src/httpservice.cpp') diff --git a/src/httpservice.cpp b/src/httpservice.cpp index 14cf60d..efcf17f 100644 --- a/src/httpservice.cpp +++ b/src/httpservice.cpp @@ -44,10 +44,14 @@ QHttpServerResponse HttpServer::GET_pixels() // std::shared_ptr logTime = std::make_shared(nullptr, [t]() { // qDebug() << "HttpServer::GET_pixels: elapsed" << t.nsecsElapsed() / 1000 << "(us)"; // }); - const std::shared_ptr logTime{nullptr, [t](auto unused_ptr) { - qDebug() << "HttpServer::GET_pixels: elapsed" - << t.nsecsElapsed() / 1000 << "(us)"; - }}; + static constexpr bool logTime{false}; + if constexpr (logTime) { + const std::shared_ptr + timeLogger{nullptr, [t](auto unused_ptr) { + qDebug() << "HttpServer::GET_pixels: elapsed" << t.nsecsElapsed() / 1000 + << "(us)"; + }}; + } Image img; { -- cgit v1.2.3-70-g09d2