Skip to content

Commit 969fc9c

Browse files
committed
Fix build
1 parent 9133538 commit 969fc9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/src/core/testqgsexpressioncontext.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -417,15 +417,15 @@ void TestQgsExpressionContext::setFeature()
417417
QCOMPARE( emptyContext.scopeCount(), 1 );
418418
QVERIFY( emptyContext.hasVariable( QgsExpressionContext::EXPR_FEATURE ) );
419419
QCOMPARE(( qvariant_cast<QgsFeature>( emptyContext.variable( QgsExpressionContext::EXPR_FEATURE ) ) ).id(), 50LL );
420-
QCOMPARE( emptyContext.feature(), feature() );
420+
QCOMPARE( emptyContext.feature().id(), 50LL );
421421

422422
QgsExpressionContext contextWithScope;
423423
contextWithScope << new QgsExpressionContextScope();
424424
contextWithScope.setFeature( feature );
425425
QCOMPARE( contextWithScope.scopeCount(), 1 );
426426
QVERIFY( contextWithScope.hasVariable( QgsExpressionContext::EXPR_FEATURE ) );
427427
QCOMPARE(( qvariant_cast<QgsFeature>( contextWithScope.variable( QgsExpressionContext::EXPR_FEATURE ) ) ).id(), 50LL );
428-
QCOMPARE( contextWithScope.feature(), feature() );
428+
QCOMPARE( contextWithScope.feature().id(), 50LL );
429429
}
430430

431431
void TestQgsExpressionContext::setFields()

0 commit comments

Comments
 (0)