File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -1164,15 +1164,13 @@ int main( int argc, char *argv[] )
1164
1164
// ///////////////////////////////////////////////////////////////////
1165
1165
// autoload any file names that were passed in on the command line
1166
1166
// ///////////////////////////////////////////////////////////////////
1167
- QgsDebugMsg ( QString ( " Number of files in myFileList: %1" ).arg ( sFileList .count () ) );
1168
- for ( QStringList::Iterator myIterator = sFileList .begin (); myIterator != sFileList .end (); ++myIterator )
1167
+ for ( const QString &layerName : qgsAsConst ( sFileList ) )
1169
1168
{
1170
- QgsDebugMsg ( QString ( " Trying to load file : %1" ).arg ( ( *myIterator ) ) );
1171
- QString myLayerName = *myIterator;
1169
+ QgsDebugMsg ( QString ( " Trying to load file : %1" ).arg ( layerName ) );
1172
1170
// don't load anything with a .qgs extension - these are project files
1173
- if ( !myLayerName .endsWith ( QLatin1String ( " .qgs" ), Qt::CaseInsensitive ) )
1171
+ if ( !layerName .endsWith ( QLatin1String ( " .qgs" ), Qt::CaseInsensitive ) )
1174
1172
{
1175
- qgis->openLayer ( myLayerName );
1173
+ qgis->openLayer ( layerName );
1176
1174
}
1177
1175
}
1178
1176
You can’t perform that action at this time.
0 commit comments