Skip to content
Permalink
Browse files

Const copy in for loop

  • Loading branch information
elpaso committed Apr 4, 2019
1 parent a8ffb33 commit 258b9a5a8a23e922c98470f960053a80e37f80e8
@@ -366,7 +366,8 @@ void QgsWmsRenderContext::searchLayersToRender()

if ( mFlags & AddQueryLayers )
{
for ( const QString &layer : flattenedQueryLayers() )
const auto constLayers { flattenedQueryLayers() };
for ( const QString &layer : constLayers )
{
if ( mNicknameLayers.contains( layer )
&& !mLayersToRender.contains( mNicknameLayers[layer] ) )
@@ -194,7 +194,7 @@ namespace QgsWms
#endif

/**
* Returns a map having layer group names as keys and a list of layer instances as values.
* Returns a map having layer group names as keys and a list of layers as values.
* \since QGIS 3.8
*/
QMap<QString, QList<QgsMapLayer *> > layerGroups() const;

0 comments on commit 258b9a5

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