Skip to content

Commit

Permalink
Code layout and const iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Aug 10, 2019
1 parent f1feb3a commit 780856f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/server/services/wms/qgswmsrenderer.cpp
Expand Up @@ -1174,7 +1174,7 @@ namespace QgsWms
{
bool validLayer = false;
bool queryableLayer = true;
for ( QgsMapLayer *layer : layers )
for ( QgsMapLayer *layer : qgis::as_const( layers ) )
{
if ( queryLayer == mContext.layerNickname( *layer ) )
{
Expand Down
10 changes: 5 additions & 5 deletions tests/src/python/test_qgsserver_wms_getfeatureinfo.py
Expand Up @@ -726,11 +726,11 @@ def testGetFeatureInfoCascadingLayers(self):
project_name = 'bug_gh31177_gfi_cascading_wms.qgs'
self.wms_request_compare('GetFeatureInfo',
'&BBOX=852729.31,5631138.51,853012.18,5631346.17' +
'&CRS=EPSG:3857' +
'&WIDTH=850&HEIGHT=624' +
'&QUERY_LAYERS=Alberate' +
'&INFO_FORMAT=application/vnd.ogc.gml' +
'&I=509&J=289' +
'&CRS=EPSG:3857' +
'&WIDTH=850&HEIGHT=624' +
'&QUERY_LAYERS=Alberate' +
'&INFO_FORMAT=application/vnd.ogc.gml' +
'&I=509&J=289' +
'&FEATURE_COUNT=10',
'wms_getfeatureinfo_cascading_issue31177',
project_name)
Expand Down

0 comments on commit 780856f

Please sign in to comment.