Skip to content

Commit

Permalink
Fix clang tidy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 15, 2022
1 parent 7800bd5 commit 64f5f9e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/src/core/testqgsexpressioncontext.cpp
Expand Up @@ -1008,7 +1008,6 @@ void TestQgsExpressionContext::layerStores()
scope1->addLayerStore( store2.get() );
QCOMPARE( scope1->layerStores(), QList< QgsMapLayerStore *>( {&store1, store2.get() } ) );

QgsExpressionContextScope *scope2 = new QgsExpressionContextScope();
QgsExpressionContextScope *scope3 = new QgsExpressionContextScope();
QgsMapLayerStore store3;
scope3->addLayerStore( &store3 );
Expand All @@ -1017,6 +1016,8 @@ void TestQgsExpressionContext::layerStores()

QgsExpressionContext context;
QVERIFY( context.layerStores().isEmpty() );

QgsExpressionContextScope *scope2 = new QgsExpressionContextScope();
context.appendScopes( { scope1, scope2, scope3 } );
// stores from scope 3 should take precedence
QCOMPARE( context.layerStores(), QList< QgsMapLayerStore *>( {&store3, &store1, store2.get() } ) );
Expand Down

0 comments on commit 64f5f9e

Please sign in to comment.