Return objects by reference instead of always cloning

This commit is contained in:
Alessandro Ranellucci 2013-09-02 20:22:20 +02:00
parent 1741301973
commit c0789506e4
30 changed files with 158 additions and 54 deletions

View file

@ -91,7 +91,9 @@ sub fill_surface {
next;
}
}
push @polylines, $polyline;
# make a clone before $collection goes out of scope
push @polylines, $polyline->clone;
}
}