Navigation Menu

Skip to content

Commit

Permalink
Remove Q_FOREACH and 'my' prefix for variable
Browse files Browse the repository at this point in the history
  • Loading branch information
DelazJ committed Nov 5, 2017
1 parent 4c3b16a commit fbcc48e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/qgsoptions.cpp
Expand Up @@ -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 );
}
Expand Down

0 comments on commit fbcc48e

Please sign in to comment.