summaryrefslogtreecommitdiffstats
path: root/src/trace/potrace/greymap.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2012-03-07 17:19:18 +0000
committerKris <Kris.De.Gussem@hotmail.com>2012-03-07 17:19:18 +0000
commit2eb76fb0bd4b8572866d3c2390eaa82747890292 (patch)
tree673eb8fdedd2cc54fd48347fb59cc5e1e20f8508 /src/trace/potrace/greymap.cpp
parentTranslations. Greek translation update by Dimitris Spingos. (diff)
downloadinkscape-2eb76fb0bd4b8572866d3c2390eaa82747890292.tar.gz
inkscape-2eb76fb0bd4b8572866d3c2390eaa82747890292.zip
cppcheck
(bzr r11052)
Diffstat (limited to 'src/trace/potrace/greymap.cpp')
-rw-r--r--src/trace/potrace/greymap.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/trace/potrace/greymap.cpp b/src/trace/potrace/greymap.cpp
index 2495575e8..e116021c1 100644
--- a/src/trace/potrace/greymap.cpp
+++ b/src/trace/potrace/greymap.cpp
@@ -61,12 +61,10 @@ greymap_t *gm_dup(greymap_t *gm) {
/* clear the given greymap to color b. */
void gm_clear(greymap_t *gm, int b) {
- int i;
-
if (b==0) {
memset(gm->map, 0, gm->w*gm->h*sizeof(signed short int));
} else {
- for (i=0; i<gm->w*gm->h; i++) {
+ for (int i=0; i<gm->w*gm->h; i++) {
gm->map[i] = b;
}
}