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/PathOutline.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/PathOutline.cpp')
| -rw-r--r-- | src/livarot/PathOutline.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/livarot/PathOutline.cpp b/src/livarot/PathOutline.cpp index 211ee31e2..f1978931a 100644 --- a/src/livarot/PathOutline.cpp +++ b/src/livarot/PathOutline.cpp @@ -21,8 +21,9 @@ // outline of a path. // computed by making 2 offsets, one of the "left" side of the path, one of the right side, and then glueing the two // the left side has to be reversed to make a contour -void Path::Outline(Path *dest, double width, JoinType join, ButtType butt, double miter) +void Path::Outline(Path &destr, double width, JoinType join, ButtType butt, double miter) { + ::Path * dest = &destr; if ( descr_flags & descr_adding_bezier ) { CancelBezier(); } @@ -198,9 +199,10 @@ void Path::Outline(Path *dest, double width, JoinType join, ButtType butt, doubl // versions for outlining closed path: they only make one side of the offset contour void -Path::OutsideOutline (Path * dest, double width, JoinType join, ButtType butt, +Path::OutsideOutline (Path & destr, double width, JoinType join, ButtType butt, double miter) { + ::Path * dest = &destr; if (descr_flags & descr_adding_bezier) { CancelBezier(); } @@ -223,9 +225,10 @@ Path::OutsideOutline (Path * dest, double width, JoinType join, ButtType butt, } void -Path::InsideOutline (Path * dest, double width, JoinType join, ButtType butt, +Path::InsideOutline (Path & destr, double width, JoinType join, ButtType butt, double miter) { + ::Path * dest = &destr; if ( descr_flags & descr_adding_bezier ) { CancelBezier(); } |
