diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2012-02-15 20:50:04 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2012-02-15 20:50:04 +0000 |
| commit | 97642b4ccedbca62162c9321509717ed86f31d6b (patch) | |
| tree | 94975614959c0681fa61031b854458748f5f6b3a /src/sp-shape.cpp | |
| parent | More header cleanup/fwd declarations (diff) | |
| download | inkscape-97642b4ccedbca62162c9321509717ed86f31d6b.tar.gz inkscape-97642b4ccedbca62162c9321509717ed86f31d6b.zip | |
cppcheck
(bzr r10987)
Diffstat (limited to 'src/sp-shape.cpp')
| -rw-r--r-- | src/sp-shape.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-shape.cpp b/src/sp-shape.cpp index efd0ed20d..ad2bea77d 100644 --- a/src/sp-shape.cpp +++ b/src/sp-shape.cpp @@ -1197,8 +1197,8 @@ void SPShape::sp_shape_snappoints(SPItem const *item, std::vector<Inkscape::Snap Geom::Crossings cs; try { cs = self_crossings(*path_it); - if (cs.size() > 0) { // There might be multiple intersections... - for (Geom::Crossings::const_iterator i = cs.begin(); i != cs.end(); i++) { + if (!cs.empty()) { // There might be multiple intersections... + for (Geom::Crossings::const_iterator i = cs.begin(); i != cs.end(); ++i) { Geom::Point p_ix = (*path_it).pointAt((*i).ta); p.push_back(Inkscape::SnapCandidatePoint(p_ix * i2dt, Inkscape::SNAPSOURCE_PATH_INTERSECTION, Inkscape::SNAPTARGET_PATH_INTERSECTION)); } |
