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/sbasis-2d.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/sbasis-2d.cpp')
| -rw-r--r-- | src/2geom/sbasis-2d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/2geom/sbasis-2d.cpp b/src/2geom/sbasis-2d.cpp index 4b414099a..aa5018e9e 100644 --- a/src/2geom/sbasis-2d.cpp +++ b/src/2geom/sbasis-2d.cpp @@ -168,7 +168,7 @@ sb2d_cubic_solve(SBasis2d const &f, Geom::Point const &A, Geom::Point const &B){ f_vv.apply(B[X],B[Y])*V1[Y]*V1[Y]; std::vector<D2<SBasis> > candidates = cubics_fitting_curvature(A,B,V0,V1,D2fVV0,D2fVV1); - if (candidates.size()==0) { + if (candidates.empty()) { return D2<SBasis>(Linear(A[X],B[X]),Linear(A[Y],B[Y])); } //TODO: I'm sure std algorithm could do that for me... |
