Skip to content
Permalink
Browse files
fix warning
  • Loading branch information
jef-n committed Mar 21, 2019
1 parent 226e3d4 commit fcb572e
Showing 1 changed file with 2 additions and 2 deletions.
@@ -2311,7 +2311,7 @@ namespace QgsWms
const QDomElement layerElem = layerList.at( i ).toElement();
const QString layerName = layerElem.attribute( QStringLiteral( "name" ) );

QgsMapLayer *layer;
QgsMapLayer *layer = nullptr;
for ( QgsMapLayer *l : layers )
{
if ( layerNickname( *l ).compare( layerName ) == 0 )
@@ -2320,7 +2320,7 @@ namespace QgsWms
}
}

if ( ! layer )
if ( !layer )
continue;

if ( layer->type() == QgsMapLayer::VectorLayer )

0 comments on commit fcb572e

Please sign in to comment.