Skip to content

Commit d404a32

Browse files
3nidsnyalldawson
authored andcommitted
use const_iterator
1 parent 68aef9a commit d404a32

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/qgisapp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9128,7 +9128,7 @@ void QgisApp::onProjectCrsChanged()
91289128
// handle datum transforms
91299129
QList<QgsCoordinateReferenceSystem> transformsToAskFor = QList<QgsCoordinateReferenceSystem>();
91309130
QMap<QString, QgsMapLayer *> layers = QgsProject::instance()->mapLayers();
9131-
for ( QMap<QString, QgsMapLayer *>::iterator it = layers.begin(); it != layers.end(); ++it )
9131+
for ( QMap<QString, QgsMapLayer *>::const_iterator it = layers.constBegin(); it != layers.constEnd(); ++it )
91329132
{
91339133
if ( !transformsToAskFor.contains( it.value()->crs() ) &&
91349134
it.value()->crs() != QgsProject::instance()->crs() &&

src/app/qgisapp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1615,7 +1615,7 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow
16151615

16161616
void onFocusChanged( QWidget *oldWidget, QWidget *newWidget );
16171617

1618-
//! handles project crs changes
1618+
//! handle project crs changes
16191619
void onProjectCrsChanged();
16201620

16211621
signals:

0 commit comments

Comments
 (0)