Skip to content

Commit

Permalink
Fix clazy warnings
Browse files Browse the repository at this point in the history
(cherry picked from commit cf43c60)
  • Loading branch information
nyalldawson committed Feb 16, 2021
1 parent c708ca5 commit f6a4613
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsrelation.cpp
Expand Up @@ -301,7 +301,7 @@ QList<QgsRelation::FieldPair> QgsRelation::fieldPairs() const
QgsAttributeList QgsRelation::referencedFields() const
{
QgsAttributeList attrs;

attrs.reserve( d->mFieldPairs.size() );
for ( const FieldPair &pair : qgis::as_const( d->mFieldPairs ) )
{
attrs << d->mReferencedLayer->fields().lookupField( pair.second );
Expand Down

0 comments on commit f6a4613

Please sign in to comment.