diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2011-10-21 16:06:32 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2011-10-21 16:06:32 +0000 |
| commit | 4f89fdb05ba7b39b86cb7034c22692faadb06f6b (patch) | |
| tree | 674b001ea2f2c426488a18c3c64917c3f4384a23 /src/trace/siox.cpp | |
| parent | cppcheck (diff) | |
| download | inkscape-4f89fdb05ba7b39b86cb7034c22692faadb06f6b.tar.gz inkscape-4f89fdb05ba7b39b86cb7034c22692faadb06f6b.zip | |
cppcheck
(bzr r10687)
Diffstat (limited to 'src/trace/siox.cpp')
| -rw-r--r-- | src/trace/siox.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/trace/siox.cpp b/src/trace/siox.cpp index a30d903cd..e7ef5b0c0 100644 --- a/src/trace/siox.cpp +++ b/src/trace/siox.cpp @@ -1011,7 +1011,7 @@ SioxImage Siox::extractForeground(const SioxImage &originalImage, } tupel.minFgDist = minFg; tupel.indexMinFg = minIndex; - if (fgSignature.size() == 0) + if (fgSignature.empty()) { isBackground = (minBg <= clusterSize); // remove next line to force behaviour of old algorithm @@ -1414,7 +1414,7 @@ int Siox::depthFirstSearch(int startPos, } - while (pixelsToVisit.size() > 0) + while (!pixelsToVisit.empty()) { int pos = pixelsToVisit[pixelsToVisit.size() - 1]; pixelsToVisit.erase(pixelsToVisit.end() - 1); @@ -1486,7 +1486,7 @@ void Siox::fillColorRegions() // int componentSize = 1; pixelsToVisit.push_back(i); // depth first search to fill region - while (pixelsToVisit.size() > 0) + while (!pixelsToVisit.empty()) { int pos = pixelsToVisit[pixelsToVisit.size() - 1]; pixelsToVisit.erase(pixelsToVisit.end() - 1); |
