Skip to content
Permalink
Browse files

qgswmsrenderer.cpp: avoid confusing aliasing of 'layer' variable name…

…, which cauded gcc 5.5 to fail
  • Loading branch information
rouault authored and rldhont committed Apr 25, 2020
1 parent 578617e commit d485744c6d0ba3b7a3e4fb1ce1d8e0d89fffaa88
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/server/services/wms/qgswmsrenderer.cpp
@@ -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() )

0 comments on commit d485744

Please sign in to comment.
You can’t perform that action at this time.