summaryrefslogtreecommitdiffstats
path: root/src/2geom/sbasis-math.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2012-01-15 17:57:07 +0000
committerKris <Kris.De.Gussem@hotmail.com>2012-01-15 17:57:07 +0000
commitc908cda71c90792646e6dfe79143ca6b7249027b (patch)
treec96b48cd56e0a9847359493382593dfad7499c97 /src/2geom/sbasis-math.cpp
parentcppcheck tells us: Memory leak: potraceBitmap (diff)
downloadinkscape-c908cda71c90792646e6dfe79143ca6b7249027b.tar.gz
inkscape-c908cda71c90792646e6dfe79143ca6b7249027b.zip
cppcheck performance
(bzr r10891)
Diffstat (limited to 'src/2geom/sbasis-math.cpp')
-rw-r--r--src/2geom/sbasis-math.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/2geom/sbasis-math.cpp b/src/2geom/sbasis-math.cpp
index 409f80c31..97cdf45ce 100644
--- a/src/2geom/sbasis-math.cpp
+++ b/src/2geom/sbasis-math.cpp
@@ -349,7 +349,7 @@ Piecewise<SBasis> reciprocal(Piecewise<SBasis> const &f, double tol, int order){
*/
Piecewise<SBasis> interpolate(std::vector<double> times, std::vector<double> values, unsigned smoothness){
assert ( values.size() == times.size() );
- if ( values.size() == 0 ) return Piecewise<SBasis>();
+ if ( values.empty() ) return Piecewise<SBasis>();
if ( values.size() == 1 ) return Piecewise<SBasis>(values[0]);//what about time??
SBasis sk = shift(Linear(1.),smoothness);