diff --git a/GeoLib/LineSegment.cpp b/GeoLib/LineSegment.cpp index e0d3adbd2d83a399859a1b776417d5b145b52675..17269b7320176db9217de73bf7833c0d1c5259e6 100644 --- a/GeoLib/LineSegment.cpp +++ b/GeoLib/LineSegment.cpp @@ -44,15 +44,7 @@ LineSegment::~LineSegment() } } -LineSegment& LineSegment::operator=(LineSegment const& other) -{ - _a = other._a; - _b = other._b; - _point_mem_management_by_line_segment = - other._point_mem_management_by_line_segment; - - return *this; -} +LineSegment& LineSegment::operator=(LineSegment const& other) = default; LineSegment& LineSegment::operator=(LineSegment&& line_segment) {