[Part] remove now obsolete code for Visual Studio compiler

- see the discussion in https://github.com/FreeCAD/FreeCAD/pull/7241
This commit is contained in:
Uwe
2022-10-15 20:42:53 +02:00
committed by abdullahtahiriyo
parent e248e3ef00
commit 40ba59fc4f

View File

@@ -71,12 +71,7 @@ std::unique_ptr<Part::GeometryExtension> GeometryDefaultExtension<T>::copy() con
std::unique_ptr<GeometryDefaultExtension<T>> cpy = std::make_unique<GeometryDefaultExtension<T>>();
copyAttributes(cpy.get());
#if defined(_MSC_VER)
return std::move(cpy); // MSC does not support automatic move constructor call if the compiler fails to elide
#else
return cpy; // all the others do automatic move constructor if RVO optimization not possible.
#endif
return cpy;
}
template <typename T>