src/lib/VSDContentCollector.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit c568de8af9da8e46e789074bfc099bc2d0854ae4 Author: Julien Nabet <serval2...@yahoo.fr> Date: Sat Jan 26 20:14:31 2013 +0100 Some cppcheck cleaning 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) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits