Add virtual destructor to MultiPoint

MutliPoint is beeing inherited from.
This commit is contained in:
Martin Šach 2024-11-11 22:23:17 +01:00 committed by Lukas Matena
parent fae52557cc
commit 092721ab0a

View File

@ -172,12 +172,13 @@ class MultiPoint
{
public:
Points points;
MultiPoint() = default;
MultiPoint(const MultiPoint &other) : points(other.points) {}
MultiPoint(MultiPoint &&other) : points(std::move(other.points)) {}
MultiPoint(std::initializer_list<Point> list) : points(list) {}
explicit MultiPoint(const Points &_points) : points(_points) {}
virtual ~MultiPoint() = default;
MultiPoint& operator=(const MultiPoint &other) { points = other.points; return *this; }
MultiPoint& operator=(MultiPoint &&other) { points = std::move(other.points); return *this; }
void scale(double factor);