diff --git a/src/Mod/Part/App/Geometry.cpp b/src/Mod/Part/App/Geometry.cpp index 30a1231a03..d03ba92be1 100644 --- a/src/Mod/Part/App/Geometry.cpp +++ b/src/Mod/Part/App/Geometry.cpp @@ -305,7 +305,7 @@ void Geometry::setExtension(std::unique_ptr geo) { bool hasext=false; - for( auto ext : extensions) { + for( auto & ext : extensions) { if(ext->getTypeId() == geo->getTypeId()){ ext = std::move(geo); hasext = true;