From 482bbe9152b459921b9e92faf7a2578868486cc7 Mon Sep 17 00:00:00 2001 From: Peter Petrik Date: Fri, 11 Nov 2022 15:29:01 +0100 Subject: [PATCH] fix clang-tidy? --- src/core/qgsinterval.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/qgsinterval.cpp b/src/core/qgsinterval.cpp index e17f647bf324..4803beee1d1b 100644 --- a/src/core/qgsinterval.cpp +++ b/src/core/qgsinterval.cpp @@ -38,9 +38,9 @@ QgsInterval::QgsInterval( double seconds ) } QgsInterval::QgsInterval( std::chrono::milliseconds milliseconds ) - : mSeconds( milliseconds.count() / 1000.0 ) + : mSeconds( static_cast( milliseconds.count() ) / 1000.0 ) , mValid( true ) - , mOriginalDuration( milliseconds.count() ) + , mOriginalDuration( static_cast( milliseconds.count() ) ) , mOriginalUnit( QgsUnitTypes::TemporalMilliseconds ) { }