mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-08-06 02:16:03 +08:00
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:
parent
7cd12b8f9d
commit
3ed563515d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user