Skip to content
Permalink
Browse files

Avoid unnecessary geometry clone - use shallow copy instead

(cherry-picked from e8b2913)
  • Loading branch information
nyalldawson committed Aug 19, 2018
1 parent 05c177f commit 6c3f9b424162c7f43bbdf765e61b1a4850e09252
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/analysis/vector/geometry_checker/qgsfeaturepool.cpp
@@ -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 )

0 comments on commit 6c3f9b4

Please sign in to comment.
You can’t perform that action at this time.