We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 3e2d9c5 commit e52414eCopy full SHA for e52414e
src/core/qgsvectorlayerjoinbuffer.cpp
@@ -398,15 +398,13 @@ QList<const QgsVectorLayerJoinInfo *> QgsVectorLayerJoinBuffer::joinsWhereFieldI
398
{
399
QList<const QgsVectorLayerJoinInfo *> infos;
400
401
- for ( int i = 0; i < mVectorJoins.count(); i++ )
+ Q_FOREACH ( const QgsVectorLayerJoinInfo &info, mVectorJoins )
402
403
- const QgsVectorLayerJoinInfo *info = &( mVectorJoins[i] );
404
-
405
- if ( infos.contains( info ) )
+ if ( infos.contains( &info ) )
406
continue;
407
408
- if ( info->targetFieldName() == field.name() )
409
- infos.append( info );
+ if ( info.targetFieldName() == field.name() )
+ infos.append( &info );
410
}
411
412
return infos;
0 commit comments