ENH:Remove move constructor.

In the old code, there are many potential incorrect usages of std::move.
Adding the move constructor can lead to unexpected crashes.

jira: NONE

Signed-off-by: xun.zhang <xun.zhang@bambulab.com>
Change-Id: Ic3f675a3abc14759bc9059739cb4c2766e6659a8
This commit is contained in:
xun.zhang 2025-05-20 20:38:12 +08:00 committed by lane.wei
parent 7cd12b8f9d
commit 3ed563515d

View File

@ -22,7 +22,6 @@ public:
MultiPoint(MultiPoint &&other) noexcept : points(std::move(other.points)) {}
MultiPoint(std::initializer_list<Point> list) : points(list) {}
explicit MultiPoint(const Points &_points) : points(_points) {}
MultiPoint(Points&& _points) noexcept: points(std::move(_points)){}
MultiPoint& operator=(const MultiPoint &other) { points = other.points; return *this; }
MultiPoint& operator=(MultiPoint &&other) noexcept { points = std::move(other.points); return *this; }
void scale(double factor);