Skip to content

Commit

Permalink
QgsFeatureId as const
Browse files Browse the repository at this point in the history
Co-authored-by: Alessandro Pasotti <elpaso@itopen.it>
  • Loading branch information
2 people authored and nyalldawson committed May 6, 2021
1 parent 84232a2 commit a4e4997
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/qgsmaptoolscalefeature.cpp
Expand Up @@ -377,7 +377,7 @@ void QgsMapToolScaleFeature::applyScaling( double scale )
if ( !( geom.transform( t ) == QgsGeometry::Success ) )
continue;

QgsFeatureId id = feat.id();
const QgsFeatureId id = feat.id();
vlayer->changeGeometry( id, geom );
}

Expand Down Expand Up @@ -478,4 +478,3 @@ void QgsMapToolScaleFeature::deleteScalingWidget()
mScalingWidget = nullptr;
}


0 comments on commit a4e4997

Please sign in to comment.