mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-12-05 11:17:58 -05:00
Don't return first_point() and last_point() by reference
This commit is contained in:
1 parent
0ffb0f6a58
commit
275422fac7
12 files changed
+28
-42
No files matched your search
@@ -33,15 +33,9 @@ MultiPoint::reverse()
|
||||
}
|
||||
|
||||
Point*
|
||||
MultiPoint::first_point()
|
||||
{
|
||||
return &(this->points.front());
|
||||
}
|
||||
|
||||
const Point*
|
||||
MultiPoint::first_point() const
|
||||
{
|
||||
return &(this->points.front());
|
||||
return new Point(this->points.front());
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in new issue
Block a user