Skip to content

Commit f3e88c3

Browse files
committedJul 2, 2021
fix build (followup e82015b)
1 parent e724d6d commit f3e88c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎tests/src/app/testqgsattributetable.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -563,11 +563,11 @@ void TestQgsAttributeTable::testCopySelectedRows()
563563

564564
QgsFeatureList features = clipboard->copyOf();
565565
QCOMPARE( features.count(), 2 );
566-
QCOMPARE( features.at( 0 ).attribute( 0 ), 1 );
567-
QCOMPARE( features.at( 0 ).attribute( "col1" ), 2 );
566+
QCOMPARE( features.at( 0 ).attribute( 0 ), QVariant( 1 ) );
567+
QCOMPARE( features.at( 0 ).attribute( "col1" ), QVariant( 2 ) );
568568
QCOMPARE( features.at( 0 ).attribute( "col2" ), QVariant() );
569-
QCOMPARE( features.at( 1 ).attribute( "pk" ), 2 );
570-
QCOMPARE( features.at( 1 ).attribute( "col1" ), 4 );
569+
QCOMPARE( features.at( 1 ).attribute( "pk" ), QVariant( 2 ) );
570+
QCOMPARE( features.at( 1 ).attribute( "col1" ), QVariant( 4 ) );
571571
QCOMPARE( features.at( 1 ).attribute( 2 ), QVariant() );
572572

573573
QCOMPARE( clipboard->crs().authid(), "EPSG:3111" );

0 commit comments

Comments
 (0)
Please sign in to comment.