File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -417,15 +417,15 @@ void TestQgsExpressionContext::setFeature()
417
417
QCOMPARE ( emptyContext.scopeCount (), 1 );
418
418
QVERIFY ( emptyContext.hasVariable ( QgsExpressionContext::EXPR_FEATURE ) );
419
419
QCOMPARE (( qvariant_cast<QgsFeature>( emptyContext.variable ( QgsExpressionContext::EXPR_FEATURE ) ) ).id (), 50LL );
420
- QCOMPARE ( emptyContext.feature (), feature () );
420
+ QCOMPARE ( emptyContext.feature (). id (), 50LL );
421
421
422
422
QgsExpressionContext contextWithScope;
423
423
contextWithScope << new QgsExpressionContextScope ();
424
424
contextWithScope.setFeature ( feature );
425
425
QCOMPARE ( contextWithScope.scopeCount (), 1 );
426
426
QVERIFY ( contextWithScope.hasVariable ( QgsExpressionContext::EXPR_FEATURE ) );
427
427
QCOMPARE (( qvariant_cast<QgsFeature>( contextWithScope.variable ( QgsExpressionContext::EXPR_FEATURE ) ) ).id (), 50LL );
428
- QCOMPARE ( contextWithScope.feature (), feature () );
428
+ QCOMPARE ( contextWithScope.feature (). id (), 50LL );
429
429
}
430
430
431
431
void TestQgsExpressionContext::setFields ()
You can’t perform that action at this time.
0 commit comments