diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2013-01-26 20:14:31 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2013-01-26 20:14:31 +0100 |
commit | c568de8af9da8e46e789074bfc099bc2d0854ae4 (patch) | |
tree | 0f0ea6855a6d6254cbf9df9884b5ac6ecb535412 | |
parent | c3df537ec26d0ffa05c1c1e9fe8ddc81a9b23d1e (diff) |
Some cppcheck cleaning
-rw-r--r-- | src/lib/VSDContentCollector.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/VSDContentCollector.cpp b/src/lib/VSDContentCollector.cpp index 1d6915a..cbe2bcb 100644 --- a/src/lib/VSDContentCollector.cpp +++ b/src/lib/VSDContentCollector.cpp @@ -1307,7 +1307,7 @@ void libvisio::VSDContentCollector::collectNURBSTo(unsigned /* id */, unsigned l { _handleLevelChange(level); - if (!knotVector.size() || !controlPoints.size() || !weights.size()) + if (knotVector.empty() || controlPoints.empty() || weights.empty()) // Here, maybe we should just draw line to (x2,y2) return; @@ -1380,7 +1380,7 @@ void libvisio::VSDContentCollector::collectNURBSTo(unsigned /* id */, unsigned l double libvisio::VSDContentCollector::_NURBSBasis(unsigned knot, unsigned degree, double point, const std::vector<double> &knotVector) { double basis = 0; - if (!knotVector.size()) + if (knotVector.empty()) return basis; if (degree == 0) { |