changeset 4640:cd5c8221c721

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; ; )
author Jorge Arellano Cid <jcid@dillo.org>
date Di, 12 Jul 2016 14:33:32 -0400
parents 8228a7b215bc
children 7f807ca63a01
files dw/iterator.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dw/iterator.cc	Di Jul 12 13:57:44 2016 -0400
+++ b/dw/iterator.cc	Di Jul 12 14:33:32 2016 -0400
@@ -121,7 +121,7 @@
       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)