[Libreoffice-commits] .: src/lib
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sat Jan 26 11:57:03 PST 2013
src/lib/VSDContentCollector.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit c568de8af9da8e46e789074bfc099bc2d0854ae4
Author: Julien Nabet <serval2412 at 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)
{
More information about the Libreoffice-commits
mailing list