diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2013-03-16 19:42:47 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2013-03-16 19:42:47 +0000 |
| commit | f6c82a02188953dcb6d2119123ffc0aaa8d35010 (patch) | |
| tree | afb6008f22f5f75c31947333809ab7614caecf41 /src/trace | |
| parent | Only suppress compiler warnings for GDL if option is supported (diff) | |
| download | inkscape-f6c82a02188953dcb6d2119123ffc0aaa8d35010.tar.gz inkscape-f6c82a02188953dcb6d2119123ffc0aaa8d35010.zip | |
cppcheck
(bzr r12217)
Diffstat (limited to 'src/trace')
| -rw-r--r-- | src/trace/siox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trace/siox.cpp b/src/trace/siox.cpp index 9376fad66..1a1426b83 100644 --- a/src/trace/siox.cpp +++ b/src/trace/siox.cpp @@ -591,7 +591,7 @@ bool SioxImage::writePPM(const std::string &fileName) if (!f) return false; - fprintf(f, "P6 %d %d 255\n", width, height); + fprintf(f, "P6 %u %u 255\n", width, height); for (unsigned int y=0 ; y<height; y++) { @@ -933,7 +933,7 @@ SioxImage Siox::extractForeground(const SioxImage &originalImage, //trace("### bgSignature:%d", bgSignature.size()); - if (bgSignature.size() < 1) + if (bgSignature.empty()) { // segmentation impossible error("Signature size is < 1. Segmentation is impossible"); |
