From 2cc19e66c0bed3065cf7274dbc908bcb90b7502e Mon Sep 17 00:00:00 2001
From: Alexey Rusakov <Kitsune-Ral@users.sf.net>
Date: Sat, 16 Jul 2022 20:30:56 +0200
Subject: logging.h: suppress clang-tidy warnings

---
 lib/logging.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

(limited to 'lib')

diff --git a/lib/logging.h b/lib/logging.h
index 2599efbf..1fafa04b 100644
--- a/lib/logging.h
+++ b/lib/logging.h
@@ -69,12 +69,13 @@ inline qint64 profilerMinNsecs()
  */
 inline QDebug operator<<(QDebug debug_object, Quotient::QDebugManip qdm)
 {
-    return qdm(debug_object);
+    return qdm(debug_object); // NOLINT(performance-unnecessary-value-param)
 }
 
 inline QDebug operator<<(QDebug debug_object, QElapsedTimer et)
 {
-    // Keep 3 decimal digits (the first division is int, the second is float)
-    debug_object << et.nsecsElapsed() / 1000 / 1000.0 << "ms";
+    // NOLINTNEXTLINE(bugprone-integer-division)
+    debug_object << static_cast<double>(et.nsecsElapsed() / 1000) / 1000
+                 << "ms"; // Show in ms with 3 decimal digits precision
     return debug_object;
 }
-- 
cgit v1.2.3