Skip to content

Commit e497e8b

Browse files
committedNov 4, 2015
fix precise build
1 parent b316140 commit e497e8b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
 

‎tests/src/core/testqgslegendrenderer.cpp‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)
Please sign in to comment.