mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
Return objects by reference instead of always cloning
This commit is contained in:
@@ -5,9 +5,7 @@ namespace Slic3r {
|
||||
PolylineCollection*
|
||||
PolylineCollection::chained_path(bool no_reverse) const
|
||||
{
|
||||
if (this->polylines.empty()) {
|
||||
return new PolylineCollection ();
|
||||
}
|
||||
if (this->polylines.empty()) return new PolylineCollection ();
|
||||
return this->chained_path_from(this->polylines.front().first_point(), no_reverse);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user