mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-02 00:02:12 -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;
|
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;
|
continue;
|
||||||
|
|
||||||
if ( info->targetFieldName() == field.name() )
|
if ( info.targetFieldName() == field.name() )
|
||||||
infos.append( info );
|
infos.append( &info );
|
||||||
}
|
}
|
||||||
|
|
||||||
return infos;
|
return infos;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user