[Uml-devel] branches/work/kde4/kdesdk/umbrello/umbrello/classparser

Laurent Montel montel at kde.org
Tue Jul 5 08:51:58 UTC 2005


SVN commit 431938 by mlaurent:

Other small fix


 M  +4 -4      lexer.cpp  


--- branches/work/kde4/kdesdk/umbrello/umbrello/classparser/lexer.cpp #431937:431938
@@ -300,7 +300,7 @@
 		    nextChar();
 		    int argIdx = 0;
 		    int argCount = m.argumentList().size();
-		    while( currentChar() && argIdx<argCount ){
+		    while( !currentChar().isNull() && argIdx<argCount ){
 			readWhiteSpaces();
 
                         QString argName = m.argumentList()[ argIdx ];
@@ -538,7 +538,7 @@
     QString arg;
 
     readWhiteSpaces();
-    while( currentChar() ){
+    while( !currentChar().isNull() ){
 
 	readWhiteSpaces();
 	QChar ch = currentChar();
@@ -646,7 +646,7 @@
 
         readWhiteSpaces( false );
 
-	while( currentChar() && currentChar() != ')' ){
+	while( !currentChar().isNull() && currentChar() != ')' ){
 	    readWhiteSpaces( false );
 
 	    int startArg = currentPosition();
@@ -674,7 +674,7 @@
     setPreprocessorEnabled( true );
 
     QString body;
-    while( currentChar() && currentChar() != '\n' ){
+    while( !currentChar().isNull() && currentChar() != '\n' ){
 
         if( currentChar().isSpace() ){
 	    readWhiteSpaces( false );




More information about the umbrello-devel mailing list