Skip to content

Commit

Permalink
fix variable type to avoid copy in for loop (#41462)
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 9, 2021
1 parent d6d4a6d commit 093bf47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/quickgui/qgsquickfeatureslistmodel.cpp
Expand Up @@ -349,7 +349,7 @@ QVariant QgsQuickFeaturesListModel::convertMultivalueFormat( const QVariant &mul
QStringList list = QgsValueRelationFieldFormatter::valueToStringList( multivalue );
QList<QVariant> retList;

for ( const QVariant &i : list )
for ( const QString &i : list )
{
QVariant var = attributeFromValue( KeyColumn, i, role );
if ( !var.isNull() )
Expand Down

0 comments on commit 093bf47

Please sign in to comment.