summaryrefslogtreecommitdiff
path: root/src/CGAL_Nef_polyhedron.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-09-11 08:51:55 (GMT)
committerMarius Kintel <marius@kintel.net>2011-09-11 08:51:55 (GMT)
commit95949cf961d84f65ad9bfb9f2dec7361059ca515 (patch)
treeb5d50e381362d013d8cce12c524571f013a990a2 /src/CGAL_Nef_polyhedron.cc
parent18e97e0bd3f6bda4fdcd17de2a85173ba59b6b00 (diff)
Implemented CGAL caching
Diffstat (limited to 'src/CGAL_Nef_polyhedron.cc')
-rw-r--r--src/CGAL_Nef_polyhedron.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CGAL_Nef_polyhedron.cc b/src/CGAL_Nef_polyhedron.cc
index ea08ca1..975c9a4 100644
--- a/src/CGAL_Nef_polyhedron.cc
+++ b/src/CGAL_Nef_polyhedron.cc
@@ -85,7 +85,7 @@ PolySet *CGAL_Nef_polyhedron::convertToPolyset()
CGAL_Nef_polyhedron CGAL_Nef_polyhedron::copy() const
{
CGAL_Nef_polyhedron copy = *this;
- if (copy.p2) copy.p2 = new CGAL_Nef_polyhedron2(*copy.p2);
- else if (copy.p3) copy.p3 = new CGAL_Nef_polyhedron3(*copy.p3);
+ if (copy.p2) copy.p2.reset(new CGAL_Nef_polyhedron2(*copy.p2));
+ else if (copy.p3) copy.p3.reset(new CGAL_Nef_polyhedron3(*copy.p3));
return copy;
}
contact: Jan Huwald // Impressum