Skip to content

Commit

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

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

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

0 comments on commit 57df3b0

Please sign in to comment.