mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Q_FOREACH use to iterate over joins info
This commit is contained in:
parent
3e2d9c5445
commit
e52414ea9d
@ -398,15 +398,13 @@ QList<const QgsVectorLayerJoinInfo *> QgsVectorLayerJoinBuffer::joinsWhereFieldI
|
||||
{
|
||||
QList<const QgsVectorLayerJoinInfo *> infos;
|
||||
|
||||
for ( int i = 0; i < mVectorJoins.count(); i++ )
|
||||
Q_FOREACH ( const QgsVectorLayerJoinInfo &info, mVectorJoins )
|
||||
{
|
||||
const QgsVectorLayerJoinInfo *info = &( mVectorJoins[i] );
|
||||
|
||||
if ( infos.contains( info ) )
|
||||
if ( infos.contains( &info ) )
|
||||
continue;
|
||||
|
||||
if ( info->targetFieldName() == field.name() )
|
||||
infos.append( info );
|
||||
if ( info.targetFieldName() == field.name() )
|
||||
infos.append( &info );
|
||||
}
|
||||
|
||||
return infos;
|
||||
|
Loading…
x
Reference in New Issue
Block a user