File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -360,7 +360,7 @@ void TestQgsLegendRenderer::testFilterByPolygon()
360360 mapSettings.setOutputSize ( QSize ( 400 , 100 ) );
361361 mapSettings.setOutputDpi ( 96 );
362362 QStringList ll;
363- foreach ( auto l, QgsMapLayerRegistry::instance ()->mapLayers () )
363+ foreach ( QgsMapLayer * l, QgsMapLayerRegistry::instance ()->mapLayers () )
364364 {
365365 ll << l->id ();
366366 }
@@ -395,15 +395,15 @@ void TestQgsLegendRenderer::testFilterByExpression()
395395 mapSettings.setOutputSize ( QSize ( 400 , 100 ) );
396396 mapSettings.setOutputDpi ( 96 );
397397 QStringList ll;
398- foreach ( auto l, QgsMapLayerRegistry::instance ()->mapLayers () )
398+ foreach ( QgsMapLayer * l, QgsMapLayerRegistry::instance ()->mapLayers () )
399399 {
400400 ll << l->id ();
401401 }
402402 mapSettings.setLayers ( ll );
403403
404404 // use an expression to only include the red point
405405 QgsLayerTreeUtils::setLegendFilterByExpression ( *legendModel.rootGroup ()->findLayer ( mVL3 ->id () ), " test_attr=1" );
406-
406+
407407 legendModel.setLegendFilterByMap ( &mapSettings );
408408
409409 QgsLegendSettings settings;
You can’t perform that action at this time.
0 commit comments