Skip to content
Permalink
Browse files

Remove Q_FOREACH and 'my' prefix for variable

  • Loading branch information
DelazJ committed Nov 5, 2017
1 parent 4c3b16a commit fbcc48ec9e93ade1c2598bcd7d1dfe8360d4a886
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/app/qgsoptions.cpp
@@ -782,11 +782,11 @@ QgsOptions::QgsOptions( QWidget *parent, Qt::WindowFlags fl, const QList<QgsOpti
setZoomFactorValue();

// predefined scales for scale combobox
QString myPaths = mSettings->value( QStringLiteral( "Map/scales" ), PROJECT_SCALES ).toString();
if ( !myPaths.isEmpty() )
QString scalePaths = mSettings->value( QStringLiteral( "Map/scales" ), PROJECT_SCALES ).toString();
if ( !scalePaths.isEmpty() )
{
QStringList myScalesList = myPaths.split( ',' );
Q_FOREACH ( const QString &scale, myScalesList )
QStringList ScalesList = scalePaths.split( ',' );
for ( const QString &scale : ScalesList )
{
addScaleToScaleList( scale );
}

0 comments on commit fbcc48e

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