Skip to content

Commit

Permalink
Constify
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 19, 2019
1 parent c50d36c commit f3c92fa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/qgsproject.cpp
Expand Up @@ -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 ) );

Expand Down

0 comments on commit f3c92fa

Please sign in to comment.