From f487829c3f7edf56e666d0be79a979b6af46a9bc Mon Sep 17 00:00:00 2001 From: Jorge Arellano Cid Date: Tue, 12 Jul 2016 14:33:32 -0400 Subject: 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; ; ) --- dw/iterator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dw/iterator.cc') 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) -- cgit v1.2.3