Part: Geometry extensions set interface

=======================================

unique_ptr is a move only type. Therefore it may only take an rvalue.

It does not make sense a pass by value for move only types (Item 41).
This commit is contained in:
Abdullah Tahiri
2019-02-09 20:00:09 +01:00
committed by wmayer
parent e4aead2365
commit 7488faa99f
2 changed files with 2 additions and 2 deletions

View File

@@ -288,7 +288,7 @@ const std::weak_ptr<GeometryExtension> Geometry::getExtension(Base::Type type) c
throw Base::ValueError("No geometry extension of the requested type.");
}
void Geometry::setExtension(std::unique_ptr<GeometryExtension> geo)
void Geometry::setExtension(std::unique_ptr<GeometryExtension> && geo)
{
bool hasext=false;