Skip to content

Commit 83d5cb6

Browse files
committedJan 23, 2019
Fix linker error in test
1 parent d748400 commit 83d5cb6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎tests/src/core/testqgsgml.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ void TestQgsGML::testFromURL()
120120
QCOMPARE( featureMaps.size(), 1 );
121121
QCOMPARE( gmlParser.idsMap().size(), 1 );
122122
QCOMPARE( gmlParser.crs().authid(), QString( "EPSG:27700" ) );
123-
QCOMPARE( featureMaps[0]->attribute( QStringLiteral( "intfield" ) ), 1 );
123+
QCOMPARE( featureMaps[0]->attribute( QStringLiteral( "intfield" ) ).toInt(), 1 );
124124
QVERIFY( featureMaps[0]->attribute( QStringLiteral( "nillablefield" ) ).isNull( ) );
125125
delete featureMaps[ 0 ];
126126
}
@@ -140,7 +140,7 @@ void TestQgsGML::testFromByteArray()
140140
QMap<QgsFeatureId, QString > idsMap = gmlParser.idsMap();
141141
QVERIFY( idsMap.constFind( 0 ) != idsMap.constEnd() );
142142
QCOMPARE( idsMap[ 0 ], QString( "mytypename.1" ) );
143-
QCOMPARE( featureMaps[0]->attribute( QStringLiteral( "intfield" ) ), 1 );
143+
QCOMPARE( featureMaps[0]->attribute( QStringLiteral( "intfield" ) ).toInt(), 1 );
144144
QVERIFY( featureMaps[0]->attribute( QStringLiteral( "nillablefield" ) ).isNull( ) );
145145
delete featureMaps[ 0 ];
146146
}

0 commit comments

Comments
 (0)
Please sign in to comment.