Skip to content
Permalink
Browse files

Fix warning

  • Loading branch information
nyalldawson committed Mar 21, 2021
1 parent b6288e8 commit fdd59d32180aed5b0221ed3c96ec1491a27a63b7
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/src/core/testqgsvectorlayerjoinbuffer.cpp
@@ -160,31 +160,31 @@ void TestVectorLayerJoinBuffer::initTestCase()
fX1.setAttribute( QStringLiteral( "value_x2" ), 222 );

// Commit features and layers to qgis
for ( const QString provider : mProviders )
for ( const QString &provider : mProviders )
{
QgsVectorLayer *vl = mLayers.value( QPair<QString, QString>( QStringLiteral( "A" ), provider ) );
vl->dataProvider()->addFeatures( QgsFeatureList() << fA1 << fA2 );
QVERIFY( vl->featureCount() == 2 );
mProject.addMapLayer( vl );
}

for ( const QString provider : mProviders )
for ( const QString &provider : mProviders )
{
QgsVectorLayer *vl = mLayers.value( QPair<QString, QString>( QStringLiteral( "B" ), provider ) );
vl->dataProvider()->addFeatures( QgsFeatureList() << fB1 << fB2 );
QVERIFY( vl->featureCount() == 2 );
mProject.addMapLayer( vl );
}

for ( const QString provider : mProviders )
for ( const QString &provider : mProviders )
{
QgsVectorLayer *vl = mLayers.value( QPair<QString, QString>( QStringLiteral( "C" ), provider ) );
vl->dataProvider()->addFeatures( QgsFeatureList() << fC1 );
QVERIFY( vl->featureCount() == 1 );
mProject.addMapLayer( vl );
}

for ( const QString provider : mProviders )
for ( const QString &provider : mProviders )
{
QgsVectorLayer *vl = mLayers.value( QPair<QString, QString>( QStringLiteral( "X" ), provider ) );
vl->dataProvider()->addFeatures( QgsFeatureList() << fX1 );

0 comments on commit fdd59d3

Please sign in to comment.