mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 17:58:03 -06:00
Many changes and fixes to remove leaks and return objects by reference
This commit is contained in:
parent
275422fac7
commit
a49dc603cc
27 changed files with 67 additions and 46 deletions
|
@ -12,7 +12,7 @@ Polygon::last_point() const
|
|||
}
|
||||
|
||||
SV*
|
||||
Polygon::to_SV_ref() const {
|
||||
Polygon::to_SV_ref() {
|
||||
SV* sv = newSV(0);
|
||||
sv_setref_pv( sv, "Slic3r::Polygon::Ref", (void*)this );
|
||||
return sv;
|
||||
|
@ -26,7 +26,7 @@ Polygon::to_SV_clone_ref() const {
|
|||
}
|
||||
|
||||
Lines
|
||||
Polygon::lines()
|
||||
Polygon::lines() const
|
||||
{
|
||||
Lines lines;
|
||||
for (int i = 0; i < this->points.size()-1; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue