diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2012-01-15 17:57:07 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2012-01-15 17:57:07 +0000 |
| commit | c908cda71c90792646e6dfe79143ca6b7249027b (patch) | |
| tree | c96b48cd56e0a9847359493382593dfad7499c97 /src/2geom/conic_section_clipper_impl.cpp | |
| parent | cppcheck tells us: Memory leak: potraceBitmap (diff) | |
| download | inkscape-c908cda71c90792646e6dfe79143ca6b7249027b.tar.gz inkscape-c908cda71c90792646e6dfe79143ca6b7249027b.zip | |
cppcheck performance
(bzr r10891)
Diffstat (limited to 'src/2geom/conic_section_clipper_impl.cpp')
| -rw-r--r-- | src/2geom/conic_section_clipper_impl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/2geom/conic_section_clipper_impl.cpp b/src/2geom/conic_section_clipper_impl.cpp index e091d1e05..2867e243c 100644 --- a/src/2geom/conic_section_clipper_impl.cpp +++ b/src/2geom/conic_section_clipper_impl.cpp @@ -55,7 +55,7 @@ bool CLIPPER_CLASS::intersect (std::vector<Point> & crossing_points) const // rigth edge cs.roots (rts, R.right(), X); - if (rts.size() != 0) + if (!rts.empty()) { no_crossing = false; DBGPRINT ("CLIP: right: rts[0] = ", rts[0]) @@ -84,7 +84,7 @@ bool CLIPPER_CLASS::intersect (std::vector<Point> & crossing_points) const // top edge cs.roots (rts, R.top(), Y); - if (rts.size() != 0) + if (!rts.empty()) { no_crossing = false; DBGPRINT ("CLIP: top: rts[0] = ", rts[0]) @@ -113,7 +113,7 @@ bool CLIPPER_CLASS::intersect (std::vector<Point> & crossing_points) const // left edge cs.roots (rts, R.left(), X); - if (rts.size() != 0) + if (!rts.empty()) { no_crossing = false; DBGPRINT ("CLIP: left: rts[0] = ", rts[0]) @@ -142,7 +142,7 @@ bool CLIPPER_CLASS::intersect (std::vector<Point> & crossing_points) const // bottom edge cs.roots (rts, R.bottom(), Y); - if (rts.size() != 0) + if (!rts.empty()) { no_crossing = false; DBGPRINT ("CLIP: bottom: rts[0] = ", rts[0]) |
