Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
qgswmsrenderer.cpp: avoid confusing aliasing of 'layer' variable name…
…, which cauded gcc 5.5 to fail
  • Loading branch information
rouault authored and rldhont committed Jun 26, 2020
1 parent 578617e commit d485744
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server/services/wms/qgswmsrenderer.cpp
Expand Up @@ -593,15 +593,15 @@ namespace QgsWms
{
QList<QgsMapLayer *> layersFromGroup;

for ( QgsMapLayer *layer : mContext.layersFromGroup( layer.mNickname ) )
for ( QgsMapLayer *layerFromGroup : mContext.layersFromGroup( layer.mNickname ) )
{

if ( ! layer )
if ( ! layerFromGroup )
{
continue;
}

layersFromGroup.push_front( layer );
layersFromGroup.push_front( layerFromGroup );
}

if ( !layersFromGroup.isEmpty() )
Expand Down

0 comments on commit d485744

Please sign in to comment.