Skip to content

Commit 3ef6c47

Browse files
committed
Fix build
1 parent 612c9cb commit 3ef6c47

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/src/core/testqgsspatialindexkdbush.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class TestQgsSpatialIndexKdBush : public QObject
124124
// create copy of the index
125125
std::unique_ptr< QgsSpatialIndexKDBush > indexCopy( new QgsSpatialIndexKDBush( *index ) );
126126

127-
QCOMPARE( index->d, indexCopy->d );
127+
QVERIFY( index->d == indexCopy->d );
128128
QVERIFY( index->d->ref == 2 );
129129

130130
// test that copied index works
@@ -133,7 +133,7 @@ class TestQgsSpatialIndexKdBush : public QObject
133133
QVERIFY( fids.contains( 1 ) );
134134

135135
// check that the index is still shared
136-
QCOMPARE( index->d, indexCopy->d );
136+
QVERIFY( index->d == indexCopy->d );
137137
QVERIFY( index->d->ref == 2 );
138138

139139
index.reset();
@@ -147,13 +147,13 @@ class TestQgsSpatialIndexKdBush : public QObject
147147
// assignment operator
148148
std::unique_ptr< QgsVectorLayer > vl2 = qgis::make_unique< QgsVectorLayer >( "Point", QString(), QStringLiteral( "memory" ) );
149149
QgsSpatialIndexKDBush index3( *vl2->dataProvider() );
150-
QCOMPARE( index3.size(), 0 );
150+
QVERIFY( index3.size() == 0 );
151151
fids = index3.intersect( QgsRectangle( 0, 0, 10, 10 ) );
152-
QCOMPARE( fids.count(), 0 );
152+
QVERIFY( fids.count() == 0 );
153153
QVERIFY( index3.d->ref == 1 );
154154

155155
index3 = *indexCopy;
156-
QCOMPARE( index3.d, indexCopy->d );
156+
QVERIFY( index3.d == indexCopy->d );
157157
QVERIFY( index3.d->ref == 2 );
158158
fids = index3.intersect( QgsRectangle( 0, 0, 10, 10 ) );
159159
QVERIFY( fids.count() == 1 );

0 commit comments

Comments
 (0)