Skip to content

Commit

Permalink
Iterate stops directly
Browse files Browse the repository at this point in the history
Co-authored-by: Nyall Dawson <[email protected]>
  • Loading branch information
merydian and nyalldawson authored Jul 11, 2024
1 parent 616bf93 commit 97c4d49
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/providers/arcgis/qgsarcgisrestutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1022,9 +1022,8 @@ QgsFeatureRenderer *QgsArcGisRestUtils::convertRenderer( const QVariantMap &rend
const QVariantList stops = visualVariable.toMap().value( QStringLiteral( "stops" ) ).toList();
QString lastLabel = nullptr;

for (int i = 0; i < stops.size(); ++i)
for ( const QVariant &stop : stops )
{
const QVariant& stop = stops.at(i);
const QVariantMap stopData = stop.toMap();
const QString label = stopData.value( QStringLiteral( "label" ) ).toString();
const double breakpoint = stopData.value( QStringLiteral( "value" ) ).toFloat();
Expand Down

0 comments on commit 97c4d49

Please sign in to comment.