Skip to content

Commit

Permalink
Cppcheck false positive
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Oct 6, 2020
1 parent f6507d3 commit ce3588b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/raster/qgscolorrampshaderwidget.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ void QgsColorRampShaderWidget::autoLabel()
{ {
if ( mPrecisionSpinBox->value() < 0 ) if ( mPrecisionSpinBox->value() < 0 )
{ {
const double factor { std::pow( 10, - mPrecisionSpinBox->value() ) }; const double factor = std::pow( 10, - mPrecisionSpinBox->value() );
val = static_cast<qlonglong>( val / factor ) * factor; val = static_cast<qlonglong>( val / factor ) * factor;
return QLocale().toString( val, 'f', 0 ); return QLocale().toString( val, 'f', 0 );
} }
Expand Down

0 comments on commit ce3588b

Please sign in to comment.