diff options
| author | Nikita Kostovsky <nikita@kostovsky.me> | 2025-11-14 11:18:21 +0100 |
|---|---|---|
| committer | Nikita Kostovsky <nikita@kostovsky.me> | 2025-11-14 11:18:21 +0100 |
| commit | 36ef6a75e3418d88227e84ab175c0057e860c151 (patch) | |
| tree | f3a0d9b3e6c3ed2354d78beeb70d1cbc4f26430e /src/httpservice.cpp | |
| parent | 921b118472da6c9d4f4d1b76549b4c3672926925 (diff) | |
fix merge artifacts
Diffstat (limited to 'src/httpservice.cpp')
| -rw-r--r-- | src/httpservice.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
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<std::nullptr_t> logTime = std::make_shared<std::nullptr_t>(nullptr, [t]() { // qDebug() << "HttpServer::GET_pixels: elapsed" << t.nsecsElapsed() / 1000 << "(us)"; // }); - const std::shared_ptr<std::nullptr_t> 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<std::nullptr_t> + timeLogger{nullptr, [t](auto unused_ptr) { + qDebug() << "HttpServer::GET_pixels: elapsed" << t.nsecsElapsed() / 1000 + << "(us)"; + }}; + } Image img; { |
