Skip to content

Commit

Permalink
Q_FOREACH use to iterate over fields
Browse files Browse the repository at this point in the history
  • Loading branch information
pblottiere committed Jun 30, 2017
1 parent c6ffd54 commit 6a1c141
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gui/qgsattributeform.cpp
Expand Up @@ -1973,9 +1973,8 @@ void QgsAttributeForm::updateJoinedFields( const QgsEditorWidgetWrapper &eww )
}
else
{
for ( int i = 0; i < joinFeature.fields().count(); i++ )
Q_FOREACH ( const QgsField &field, joinFeature.fields() )
{
QgsField field = joinFeature.fields().field( i );
QString prefixedName = info->prefixedFieldName( field );
changeAttribute( prefixedName, joinFeature.attribute( field.name() ) );
}
Expand Down

0 comments on commit 6a1c141

Please sign in to comment.