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/d2-sbasis.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/d2-sbasis.cpp')
| -rw-r--r-- | src/2geom/d2-sbasis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/2geom/d2-sbasis.cpp b/src/2geom/d2-sbasis.cpp index 697a9d84e..228e1ce24 100644 --- a/src/2geom/d2-sbasis.cpp +++ b/src/2geom/d2-sbasis.cpp @@ -214,7 +214,7 @@ static void set_last_point(Piecewise<D2<SBasis> > &f, Point a){ std::vector<Piecewise<D2<SBasis> > > fuse_nearby_ends(std::vector<Piecewise<D2<SBasis> > > const &f, double tol){ - if ( f.size()==0 ) return f; + if ( f.empty()) return f; std::vector<Piecewise<D2<SBasis> > > result; std::vector<std::vector<unsigned> > pre_result; for (unsigned i=0; i<f.size(); i++){ |
