Skip to content

Commit

Permalink
fix clang-tidy?
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik authored and nyalldawson committed Nov 11, 2022
1 parent 2adc388 commit 482bbe9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/qgsinterval.cpp
Expand Up @@ -38,9 +38,9 @@ QgsInterval::QgsInterval( double seconds )
}

QgsInterval::QgsInterval( std::chrono::milliseconds milliseconds )
: mSeconds( milliseconds.count() / 1000.0 )
: mSeconds( static_cast<double>( milliseconds.count() ) / 1000.0 )
, mValid( true )
, mOriginalDuration( milliseconds.count() )
, mOriginalDuration( static_cast<double>( milliseconds.count() ) )
, mOriginalUnit( QgsUnitTypes::TemporalMilliseconds )
{
}
Expand Down

0 comments on commit 482bbe9

Please sign in to comment.