Skip to content
Permalink
Browse files

Cppcheck false positive

  • Loading branch information
elpaso authored and nyalldawson committed Oct 6, 2020
1 parent f6507d3 commit ce3588b1cd3e74ae330030ac5ffb2fd472545c6c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/raster/qgscolorrampshaderwidget.cpp
@@ -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 );
}

0 comments on commit ce3588b

Please sign in to comment.
You can’t perform that action at this time.