diff --git a/src/Mod/Part/App/Geometry.cpp b/src/Mod/Part/App/Geometry.cpp index e6c96ceae9..7ad718e9db 100644 --- a/src/Mod/Part/App/Geometry.cpp +++ b/src/Mod/Part/App/Geometry.cpp @@ -288,7 +288,7 @@ const std::weak_ptr Geometry::getExtension(Base::Type type) c throw Base::ValueError("No geometry extension of the requested type."); } -void Geometry::setExtension(std::unique_ptr geo) +void Geometry::setExtension(std::unique_ptr && geo) { bool hasext=false; diff --git a/src/Mod/Part/App/Geometry.h b/src/Mod/Part/App/Geometry.h index c8e4a1d678..2334c6dd75 100644 --- a/src/Mod/Part/App/Geometry.h +++ b/src/Mod/Part/App/Geometry.h @@ -101,7 +101,7 @@ public: bool hasExtension(Base::Type type) const; const std::weak_ptr getExtension(Base::Type type) const; - void setExtension(std::unique_ptr geo); + void setExtension(std::unique_ptr &&geo); protected: /// create a new tag for the geometry object