Skip to content

Commit

Permalink
use const_iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids authored and nyalldawson committed Dec 15, 2017
1 parent 68aef9a commit d404a32
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -9128,7 +9128,7 @@ void QgisApp::onProjectCrsChanged()
// handle datum transforms
QList<QgsCoordinateReferenceSystem> transformsToAskFor = QList<QgsCoordinateReferenceSystem>();
QMap<QString, QgsMapLayer *> layers = QgsProject::instance()->mapLayers();
for ( QMap<QString, QgsMapLayer *>::iterator it = layers.begin(); it != layers.end(); ++it )
for ( QMap<QString, QgsMapLayer *>::const_iterator it = layers.constBegin(); it != layers.constEnd(); ++it )
{
if ( !transformsToAskFor.contains( it.value()->crs() ) &&
it.value()->crs() != QgsProject::instance()->crs() &&
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgisapp.h
Expand Up @@ -1615,7 +1615,7 @@ class APP_EXPORT QgisApp : public QMainWindow, private Ui::MainWindow

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

//! handles project crs changes
//! handle project crs changes
void onProjectCrsChanged();

signals:
Expand Down

0 comments on commit d404a32

Please sign in to comment.