summaryrefslogtreecommitdiffstats
path: root/src/measure-context.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2012-02-15 20:50:04 +0000
committerKris <Kris.De.Gussem@hotmail.com>2012-02-15 20:50:04 +0000
commit97642b4ccedbca62162c9321509717ed86f31d6b (patch)
tree94975614959c0681fa61031b854458748f5f6b3a /src/measure-context.cpp
parentMore header cleanup/fwd declarations (diff)
downloadinkscape-97642b4ccedbca62162c9321509717ed86f31d6b.tar.gz
inkscape-97642b4ccedbca62162c9321509717ed86f31d6b.zip
cppcheck
(bzr r10987)
Diffstat (limited to 'src/measure-context.cpp')
-rw-r--r--src/measure-context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/measure-context.cpp b/src/measure-context.cpp
index 2143e35eb..9db2b8de4 100644
--- a/src/measure-context.cpp
+++ b/src/measure-context.cpp
@@ -151,7 +151,7 @@ void calculate_intersections(SPDesktop * /*desktop*/, SPItem* item, Geom::PathVe
Geom::CrossingSet cs = Geom::crossings(*lineseg, curve->get_pathvector());
// Reconstruct and store the points of intersection
- for (Geom::Crossings::const_iterator m = cs[0].begin(); m != cs[0].end(); m++) {
+ for (Geom::Crossings::const_iterator m = cs[0].begin(); m != cs[0].end(); ++m) {
#if 0
//TODO: consider only visible intersections
Geom::Point intersection = (*lineseg)[0].pointAt((*m).ta);
@@ -369,7 +369,7 @@ static gint sp_measure_context_root_handler(SPEventContext *event_context, GdkEv
double fontsize = prefs->getInt("/tools/measure/fontsize");
Geom::Point previous_point;
- if (intersections.size() > 0) {
+ if (!intersections.empty()) {
previous_point = intersections[0];
}