Skip to content

Commit

Permalink
avoid detach in range loop
Browse files Browse the repository at this point in the history
  • Loading branch information
3nids committed Feb 4, 2022
1 parent 91cf895 commit db1115f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsfeatureexpressionvaluesgatherer.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ class QgsFeatureExpressionValuesGatherer: public QThread
{
mExpressionContext.setFeature( feature );
QVariantList attributes;
for ( const int idx : attributeIndexes )
for ( const int idx : std::as_const( attributeIndexes ) )
attributes << feature.attribute( idx );

const QString expressionValue = mDisplayExpression.evaluate( &mExpressionContext ).toString();
Expand Down

0 comments on commit db1115f

Please sign in to comment.