From 3ed563515de13ebd8eb0d1511cf824c39cfbd3f8 Mon Sep 17 00:00:00 2001 From: "xun.zhang" Date: Tue, 20 May 2025 20:38:12 +0800 Subject: [PATCH] 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 Change-Id: Ic3f675a3abc14759bc9059739cb4c2766e6659a8 --- src/libslic3r/MultiPoint.hpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/libslic3r/MultiPoint.hpp b/src/libslic3r/MultiPoint.hpp index 63c28cc98..26d2dcbb5 100644 --- a/src/libslic3r/MultiPoint.hpp +++ b/src/libslic3r/MultiPoint.hpp @@ -22,7 +22,6 @@ public: MultiPoint(MultiPoint &&other) noexcept : points(std::move(other.points)) {} MultiPoint(std::initializer_list 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);