summaryrefslogtreecommitdiffstats
path: root/src/live_effects
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2011-10-18 05:54:57 +0000
committerKris <Kris.De.Gussem@hotmail.com>2011-10-18 05:54:57 +0000
commit48acbc6ed82b18fb07aa5e7964f7702428bade73 (patch)
treec54e5cb84bce1167d8f1baff59edb3b007dfd6f7 /src/live_effects
parentpdf import. modify calculation of GradientTransform (Bug 530895) (diff)
downloadinkscape-48acbc6ed82b18fb07aa5e7964f7702428bade73.tar.gz
inkscape-48acbc6ed82b18fb07aa5e7964f7702428bade73.zip
cppcheck
(bzr r10681)
Diffstat (limited to 'src/live_effects')
-rw-r--r--src/live_effects/effect.cpp8
-rw-r--r--src/live_effects/lpe-gears.cpp5
-rw-r--r--src/live_effects/lpe-knot.cpp2
3 files changed, 8 insertions, 7 deletions
diff --git a/src/live_effects/effect.cpp b/src/live_effects/effect.cpp
index a5b2077a5..e040eec32 100644
--- a/src/live_effects/effect.cpp
+++ b/src/live_effects/effect.cpp
@@ -436,7 +436,7 @@ Effect::readallParameters(Inkscape::XML::Node * repr)
param->param_set_default();
}
- it++;
+ ++it;
}
}
@@ -572,7 +572,7 @@ Effect::newWidget(Gtk::Tooltips * tooltips)
}
}
- it++;
+ ++it;
}
return dynamic_cast<Gtk::Widget *>(vbox);
@@ -604,7 +604,7 @@ Effect::getParameter(const char * key)
return param;
}
- it++;
+ ++it;
}
return NULL;
@@ -671,7 +671,7 @@ void
Effect::transform_multiply(Geom::Affine const& postmul, bool set)
{
// cycle through all parameters. Most parameters will not need transformation, but path and point params do.
- for (std::vector<Parameter *>::iterator it = param_vector.begin(); it != param_vector.end(); it++) {
+ for (std::vector<Parameter *>::iterator it = param_vector.begin(); it != param_vector.end(); ++it) {
Parameter * param = *it;
param->param_transform_multiply(postmul, set);
}
diff --git a/src/live_effects/lpe-gears.cpp b/src/live_effects/lpe-gears.cpp
index 337beb516..ac2db1716 100644
--- a/src/live_effects/lpe-gears.cpp
+++ b/src/live_effects/lpe-gears.cpp
@@ -244,12 +244,13 @@ LPEGears::doEffect_path (std::vector<Geom::Path> const & path_in)
gear->centre(gear_centre);
gear->angle(atan2((*it).initialPoint() - gear_centre));
- it++; if ( it == gearpath.end() ) return path_out;
+ ++it;
+ if ( it == gearpath.end() ) return path_out;
gear->pitch_radius(Geom::distance(gear_centre, (*it).finalPoint()));
path_out.push_back( gear->path());
- for (it++ ; it != gearpath.end() ; it++) {
+ for (++it; it != gearpath.end() ; ++it) {
// iterate through Geom::Curve in path_in
Gear* gearnew = new Gear(gear->spawn( (*it).finalPoint() ));
path_out.push_back( gearnew->path() );
diff --git a/src/live_effects/lpe-knot.cpp b/src/live_effects/lpe-knot.cpp
index 4c88ac315..c957c8f08 100644
--- a/src/live_effects/lpe-knot.cpp
+++ b/src/live_effects/lpe-knot.cpp
@@ -214,7 +214,7 @@ CrossingPoints::CrossingPoints(std::vector<Geom::Path> const &paths) : std::vect
if (cp.j == i) cuts[cp.tj] = k;
}
unsigned count = 0;
- for ( std::map < double, unsigned >::iterator m=cuts.begin(); m!=cuts.end(); m++ ){
+ for ( std::map < double, unsigned >::iterator m=cuts.begin(); m!=cuts.end(); ++m ){
if ( (*this)[m->second].i == i && (*this)[m->second].ti == m->first ){
(*this)[m->second].ni = count;
}else{