Skip to content
Permalink
Browse files

use const_iterator

  • Loading branch information
3nids authored and nyalldawson committed Dec 15, 2017
1 parent 68aef9a commit d404a3291bd171943ef255f4c7602658ac2fd6c8
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/app/qgisapp.cpp
  2. +1 −1 src/app/qgisapp.h
@@ -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() &&
@@ -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:

0 comments on commit d404a32

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