summaryrefslogtreecommitdiffstats
path: root/src/livarot/PathCutting.cpp
diff options
context:
space:
mode:
authorLiam P. White <inkscapebronyat-signgmaildotcom>2014-06-06 21:01:38 +0000
committerLiam P. White <inkscapebronyat-signgmaildotcom>2014-06-06 21:01:38 +0000
commit1fd57a41383419cbeddbaef27e52d55c0d02400f (patch)
tree72854a0d1dc09bec11e55b28c68ea22dcef5be1b /src/livarot/PathCutting.cpp
parentPut lpe-envelope-perspective.cpp in CMakeLists.txt (diff)
downloadinkscape-1fd57a41383419cbeddbaef27e52d55c0d02400f.tar.gz
inkscape-1fd57a41383419cbeddbaef27e52d55c0d02400f.zip
Clean up some unnecessary pointer usage in livarot
(bzr r13341.1.50)
Diffstat (limited to 'src/livarot/PathCutting.cpp')
-rw-r--r--src/livarot/PathCutting.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/livarot/PathCutting.cpp b/src/livarot/PathCutting.cpp
index 49b2c5a78..74653ca06 100644
--- a/src/livarot/PathCutting.cpp
+++ b/src/livarot/PathCutting.cpp
@@ -269,10 +269,11 @@ void Path::DashSubPath(int spL, int spP, std::vector<path_lineto> const &orig_pt
}
}
-Geom::PathVector *
+Geom::PathVector
Path::MakePathVector()
{
- Geom::PathVector *pv = new Geom::PathVector();
+ Geom::PathVector retPv;
+ Geom::PathVector *pv = &retPv;
Geom::Path * currentpath = NULL;
Geom::Point lastP,bezSt,bezEn;
@@ -380,7 +381,7 @@ Path::MakePathVector()
}
}
- return pv;
+ return *pv;
}
void Path::AddCurve(Geom::Curve const &c)