summaryrefslogtreecommitdiffstats
path: root/src/selection-describer.cpp
diff options
context:
space:
mode:
authorJohan B. C. Engelen <jbc.engelen@swissonline.ch>2013-08-03 21:39:12 +0000
committerJohan B. C. Engelen <j.b.c.engelen@alumnus.utwente.nl>2013-08-03 21:39:12 +0000
commit6777466eda0b6952746a7bfb443d5e773857185a (patch)
tree6925db4d1d00ae3570a61953629ec3eae98c1019 /src/selection-describer.cpp
parentreduce scope of variables (diff)
downloadinkscape-6777466eda0b6952746a7bfb443d5e773857185a.tar.gz
inkscape-6777466eda0b6952746a7bfb443d5e773857185a.zip
reduce variable scope
(bzr r12464)
Diffstat (limited to 'src/selection-describer.cpp')
-rw-r--r--src/selection-describer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/selection-describer.cpp b/src/selection-describer.cpp
index 6ed8ca584..b5704bb76 100644
--- a/src/selection-describer.cpp
+++ b/src/selection-describer.cpp
@@ -100,9 +100,8 @@ static GSList *collect_terms (GSList *items)
static int count_filtered (GSList *items)
{
int count=0;
- SPItem *item=NULL;
for (GSList *i = items; i != NULL; i = i->next) {
- item = SP_ITEM(i->data);
+ SPItem *item = SP_ITEM(i->data);
count += item->ifilt();
}
return count;