diff options
| author | Jon A. Cruz <jon@joncruz.org> | 2016-04-21 06:14:10 +0000 |
|---|---|---|
| committer | Jon A. Cruz <jon@joncruz.org> | 2016-04-21 06:14:10 +0000 |
| commit | e71c798f2fd8610baaddbb58d103b2ef44d65ccb (patch) | |
| tree | c9cdc3f3f3619e5212f4113c368899fd41c1d974 /src/unclump.cpp | |
| parent | fix #1571365 linking on win32 (diff) | |
| download | inkscape-e71c798f2fd8610baaddbb58d103b2ef44d65ccb.tar.gz inkscape-e71c798f2fd8610baaddbb58d103b2ef44d65ccb.zip | |
minor warning cleanup.
(bzr r14861)
Diffstat (limited to 'src/unclump.cpp')
| -rw-r--r-- | src/unclump.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/unclump.cpp b/src/unclump.cpp index 2c6840425..5ec5cfce4 100644 --- a/src/unclump.cpp +++ b/src/unclump.cpp @@ -342,7 +342,9 @@ unclump (std::vector<SPItem*> &items) std::list<SPItem*> nei; std::list<SPItem*> rest; - for(int i=0;i<items.size();i++)rest.push_front(items[items.size()-i-1]); + for (int i=0; i < static_cast<int>(items.size()); i++) { + rest.push_front(items[items.size() - i - 1]); + } rest.remove(item); while (!rest.empty()) { @@ -352,7 +354,9 @@ unclump (std::vector<SPItem*> &items) rest.remove(closest); std::vector<SPItem*> new_rest = unclump_remove_behind (item, closest, rest); rest.clear(); - for(int i=0;i<new_rest.size();i++)rest.push_front(new_rest[new_rest.size()-i-1]); + for (int i=0; i < static_cast<int>(new_rest.size()); i++) { + rest.push_front(new_rest[new_rest.size() - i - 1]); + } } else { break; } |
