Base: modernize C++: use equals default

This commit is contained in:
wmayer
2023-08-20 14:54:51 +02:00
parent 44884ecaf7
commit db0f6534c3
12 changed files with 57 additions and 198 deletions

View File

@@ -58,13 +58,13 @@ public:
Line3() = default;
~Line3() = default;
Line3(const Line3& line);
Line3(Line3&& line);
Line3(const Line3& line) = default;
Line3(Line3&& line) = default;
Line3(const Vector3<float_type>& p1, const Vector3<float_type>& p2);
// operators
Line3& operator= (const Line3& line);
Line3& operator= (Line3&& line);
Line3& operator= (const Line3& line) = default;
Line3& operator= (Line3&& line) = default;
bool operator== (const Line3& line) const;
// methods
@@ -111,8 +111,10 @@ public:
Polygon3() = default;
~Polygon3() = default;
Polygon3(const Polygon3<float_type>& poly) = default;
Polygon3(Polygon3<float_type>&& poly) = default;
Polygon3& operator = (const Polygon3<float_type>& poly) = default;
Polygon3& operator = (Polygon3<float_type>&& poly) = default;
size_t GetSize() const;
void Add (const Vector3<float_type>& p);