diff options
| author | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-06-06 21:01:38 +0000 |
|---|---|---|
| committer | Liam P. White <inkscapebronyat-signgmaildotcom> | 2014-06-06 21:01:38 +0000 |
| commit | 1fd57a41383419cbeddbaef27e52d55c0d02400f (patch) | |
| tree | 72854a0d1dc09bec11e55b28c68ea22dcef5be1b /src/livarot/PathCutting.cpp | |
| parent | Put lpe-envelope-perspective.cpp in CMakeLists.txt (diff) | |
| download | inkscape-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.cpp | 7 |
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) |
