Skip to content
Permalink
Browse files

Constify

  • Loading branch information
nyalldawson committed Jan 19, 2019
1 parent c50d36c commit f3c92fab162ee8c4f323a6c1fe76b4da44113ab7
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/core/qgsproject.cpp
@@ -901,14 +901,14 @@ bool QgsProject::_getMapLayers( const QDomDocument &doc, QList<QDomNode> &broken
if ( depSorter.hasCycle() || depSorter.hasMissingDependency() )
return false;

QVector<QDomNode> sortedLayerNodes = depSorter.sortedLayerNodes();
const QVector<QDomNode> sortedLayerNodes = depSorter.sortedLayerNodes();

int i = 0;
Q_FOREACH ( const QDomNode &node, sortedLayerNodes )
for ( const QDomNode &node : sortedLayerNodes )
{
QDomElement element = node.toElement();
const QDomElement element = node.toElement();

QString name = translate( QStringLiteral( "project:layers:%1" ).arg( node.namedItem( QStringLiteral( "id" ) ).toElement().text() ), node.namedItem( QStringLiteral( "layername" ) ).toElement().text() );
const QString name = translate( QStringLiteral( "project:layers:%1" ).arg( node.namedItem( QStringLiteral( "id" ) ).toElement().text() ), node.namedItem( QStringLiteral( "layername" ) ).toElement().text() );
if ( !name.isNull() )
emit loadingLayer( tr( "Loading layer %1" ).arg( name ) );

0 comments on commit f3c92fa

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