diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2008-04-09 21:12:17 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2008-04-09 21:12:17 +0000 |
| commit | 8b69d31378f589b16f5534fde7b4c9f28c77b817 (patch) | |
| tree | d0dd31312892417b6a2b01a818cbb1633f17c812 /src/live_effects/lpe-knot.cpp | |
| parent | change to c++ style casts in Effect::New (diff) | |
| download | inkscape-8b69d31378f589b16f5534fde7b4c9f28c77b817.tar.gz inkscape-8b69d31378f589b16f5534fde7b4c9f28c77b817.zip | |
change doEffect functions to use const& parameters
(bzr r5394)
Diffstat (limited to 'src/live_effects/lpe-knot.cpp')
| -rw-r--r-- | src/live_effects/lpe-knot.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/live_effects/lpe-knot.cpp b/src/live_effects/lpe-knot.cpp index bd9c0ca68..245b6df0f 100644 --- a/src/live_effects/lpe-knot.cpp +++ b/src/live_effects/lpe-knot.cpp @@ -101,13 +101,13 @@ findShadowedTime(Geom::Path &patha, //Just a try; this should be moved to 2geom if ever it works. std::vector<Geom::Path> -split_loopy_bezier (std::vector<Geom::Path> & path_in){ +split_loopy_bezier (std::vector<Geom::Path> const & path_in){ std::vector<Geom::Path> ret; - std::vector<Geom::Path>::iterator pi=path_in.begin(); + std::vector<Geom::Path>::const_iterator pi=path_in.begin(); for(; pi != path_in.end(); pi++) { ret.push_back(Geom::Path()); - for (Geom::Path::iterator curve(pi->begin()),end(pi->end()); curve != end; ++curve){ + for (Geom::Path::const_iterator curve(pi->begin()),end(pi->end()); curve != end; ++curve){ //is the current curve a cubic bezier? if(Geom::CubicBezier const *cubic_bezier = dynamic_cast<Geom::CubicBezier const *>(&(*curve))){ @@ -149,13 +149,13 @@ split_loopy_bezier (std::vector<Geom::Path> & path_in){ std::vector<Geom::Path> -LPEKnot::doEffect_path (std::vector<Geom::Path> & path_in) +LPEKnot::doEffect_path (std::vector<Geom::Path> const & input_path) { using namespace Geom; std::vector<Geom::Path> path_out; double width = interruption_width; - - path_in = split_loopy_bezier(path_in); + + std::vector<Geom::Path> path_in = split_loopy_bezier(input_path); CrossingSet crossingTable = crossings_among(path_in); for (unsigned i = 0; i < crossingTable.size(); i++){ |
