From c908cda71c90792646e6dfe79143ca6b7249027b Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Sun, 15 Jan 2012 18:57:07 +0100 Subject: cppcheck performance (bzr r10891) --- src/2geom/sbasis-2d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/2geom/sbasis-2d.cpp') 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 > candidates = cubics_fitting_curvature(A,B,V0,V1,D2fVV0,D2fVV1); - if (candidates.size()==0) { + if (candidates.empty()) { return D2(Linear(A[X],B[X]),Linear(A[Y],B[Y])); } //TODO: I'm sure std algorithm could do that for me... -- cgit v1.2.3