Skip to content

Commit

Permalink
Avoid unnecessary geometry clone - use shallow copy instead
Browse files Browse the repository at this point in the history
(cherry-picked from e8b2913)
  • Loading branch information
nyalldawson committed Aug 21, 2018
1 parent 05c177f commit 6c3f9b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analysis/vector/geometry_checker/qgsfeaturepool.cpp
Expand Up @@ -109,7 +109,7 @@ void QgsFeaturePool::updateFeature( QgsFeature &feature )
get( feature.id(), origFeature );

QgsGeometryMap geometryMap;
geometryMap.insert( feature.id(), QgsGeometry( feature.geometry().constGet()->clone() ) );
geometryMap.insert( feature.id(), feature.geometry() );
QgsChangedAttributesMap changedAttributesMap;
QgsAttributeMap attribMap;
for ( int i = 0, n = feature.attributes().size(); i < n; ++i )
Expand Down

0 comments on commit 6c3f9b4

Please sign in to comment.