Skip to content
Snippets Groups Projects
Commit 8621f248 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[GL] Shorten code by using default copy assignment

parent 2d69210e
No related branches found
No related tags found
No related merge requests found
......@@ -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)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment