Skip to content
Permalink
Browse files

Avoid unnecessary geometry clone - use shallow copy instead

  • Loading branch information
nyalldawson committed Aug 19, 2018
1 parent a59900f commit e8b29134c86f5d4aa42410dbef2bd1f1255c0106
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/analysis/vector/geometry_checker/qgsfeaturepool.cpp
@@ -102,7 +102,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 e8b2913

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