aboutsummaryrefslogtreecommitdiff
path: root/dw/iterator.cc
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2016-07-12 14:33:32 -0400
committerJorge Arellano Cid <jcid@dillo.org>2016-07-12 14:33:32 -0400
commitf487829c3f7edf56e666d0be79a979b6af46a9bc (patch)
tree9645acf5e9a2ec93e90a47ae9f14a04f84b1a427 /dw/iterator.cc
parent3568436d2515cde056ad035b23429669dddedd98 (diff)
cppcheck: AFAICS a false positive (should be reported to them)
A simple code order changes, which is not relevant in this case, but pleases cppcheck: - for (a,b; ; ) + for (b,a; ; )
Diffstat (limited to 'dw/iterator.cc')
-rw-r--r--dw/iterator.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/dw/iterator.cc b/dw/iterator.cc
index 51b49125..b986559e 100644
--- a/dw/iterator.cc
+++ b/dw/iterator.cc
@@ -121,7 +121,7 @@ void Iterator::scrollTo (Iterator *it1, Iterator *it2, int start, int end,
y1 = INT_MAX;
y2 = INT_MIN;
- for (eit3 = (DeepIterator*)eit1->clone (), atStart = true;
+ for (atStart = true, eit3 = (DeepIterator*)eit1->clone ();
(cmp = eit3->compareTo (eit2)) <= 0;
eit3->next (), atStart = false) {
if (atStart)