From 79d6e85e6f27a6262b2cd165e3bed943a5e62d83 Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 17 May 2022 11:55:33 +0200 Subject: [PATCH] Mesh: implemented recommended move constructor and move assignment for Point3d --- src/Mod/Mesh/App/Core/KDTree.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Mod/Mesh/App/Core/KDTree.cpp b/src/Mod/Mesh/App/Core/KDTree.cpp index 2620f8565d..a0be600239 100644 --- a/src/Mod/Mesh/App/Core/KDTree.cpp +++ b/src/Mod/Mesh/App/Core/KDTree.cpp @@ -45,6 +45,10 @@ struct Point3d { } + Point3d(Point3d&& pnt) : p(pnt.p), i(pnt.i) + { + } + ~Point3d() { } @@ -70,6 +74,12 @@ struct Point3d this->i = other.i; } + inline void operator=(Point3d&& other) + { + this->p = other.p; + this->i = other.i; + } + Base::Vector3f p; PointIndex i; };