Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Cppcheck false positive
  • 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
Expand Up @@ -182,7 +182,7 @@ void QgsColorRampShaderWidget::autoLabel()
{
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;
return QLocale().toString( val, 'f', 0 );
}
Expand Down

0 comments on commit ce3588b

Please sign in to comment.