diff --git a/src/Mod/Part/App/GeometryDefaultExtension.cpp b/src/Mod/Part/App/GeometryDefaultExtension.cpp index 26665fc304..558321bfb7 100644 --- a/src/Mod/Part/App/GeometryDefaultExtension.cpp +++ b/src/Mod/Part/App/GeometryDefaultExtension.cpp @@ -71,12 +71,7 @@ std::unique_ptr GeometryDefaultExtension::copy() con std::unique_ptr> cpy = std::make_unique>(); 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