[Uml-devel] KDE/kdesdk/umbrello/umbrello/codeimport/kdevcppparser

Andi Fischer andi.fischer at hispeed.ch
Tue Oct 7 18:10:35 UTC 2008


SVN commit 868945 by fischer:

Krazy: fixing postfix usage of ++ and --.

 M  +3 -2      lookup.cpp  


--- trunk/KDE/kdesdk/umbrello/umbrello/codeimport/kdevcppparser/lookup.cpp #868944:868945
@@ -34,7 +34,7 @@
   }
   char *ascii = new char[len+1];
   unsigned int i;
-  for(i = 0; i < len; i++, c++) {
+  for (i = 0; i < len; ++i, ++c) {
     if (!c->row())
       ascii[i] = c->cell();
     else
@@ -89,8 +89,9 @@
 {
   unsigned int val = 0;
   // ignoring rower byte
-  for (unsigned int i = 0; i < len; i++, c++)
+  for (unsigned int i = 0; i < len; ++i, ++c) {
     val += c->cell();
+  }
 
   return val;
 }




More information about the umbrello-devel mailing list