Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Mar 21, 2019
1 parent 226e3d4 commit fcb572e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/services/wms/qgswmsrenderer.cpp
Expand Up @@ -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 )
Expand All @@ -2320,7 +2320,7 @@ namespace QgsWms
}
}

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

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

0 comments on commit fcb572e

Please sign in to comment.