Skip to content

Commit acb6f42

Browse files
committedNov 5, 2018
Variable rename (get rid of "my" prefix)
1 parent 326640d commit acb6f42

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed
 

‎src/core/qgsproject.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -925,26 +925,25 @@ bool QgsProject::addLayer( const QDomElement &layerElem, QList<QDomNode> &broken
925925
if ( !mapLayer )
926926
{
927927
QgsDebugMsg( QStringLiteral( "Unable to create layer" ) );
928-
929928
return false;
930929
}
931930

932931
Q_CHECK_PTR( mapLayer ); // NOLINT
933932

934933
// have the layer restore state that is stored in Dom node
935934
bool layerIsValid = mapLayer->readLayerXml( layerElem, context ) && mapLayer->isValid();
936-
QList<QgsMapLayer *> myLayers;
937-
myLayers << mapLayer;
935+
QList<QgsMapLayer *> newLayers;
936+
newLayers << mapLayer;
938937
if ( layerIsValid )
939938
{
940939
emit readMapLayer( mapLayer, layerElem );
941-
addMapLayers( myLayers );
940+
addMapLayers( newLayers );
942941
}
943942
else
944943
{
945944
// It's a bad layer: do not add to legend (the user will decide if she wants to do so)
946-
addMapLayers( myLayers, false );
947-
myLayers.first();
945+
addMapLayers( newLayers, false );
946+
newLayers.first();
948947
QgsDebugMsg( "Unable to load " + type + " layer" );
949948
brokenNodes.push_back( layerElem );
950949
}

0 commit comments

Comments
 (0)
Please sign in to comment.