[Uml-devel] KDE_3_4_BRANCH: kdesdk/umbrello/umbrello/classparser

Oliver Kellogg okellogg at users.sourceforge.net
Sun Apr 17 08:03:05 UTC 2005


CVS commit by okellogg: 

Backport following fix from HEAD:
> CVS commit by okellogg:
> parseEnumSpecifier(): Skip comment after last enum literal.
> Thanks to Braddock Gaskill for reporting the problem.


  M +2 -0      parser.cpp   1.11.2.1


--- kdesdk/umbrello/umbrello/classparser/parser.cpp  #1.11:1.11.2.1
@@ -1445,4 +1445,6 @@ bool Parser::parseEnumSpecifier( TypeSpe
     }
 
+    if( lex->lookAhead(0) == Token_comment )
+        lex->nextToken();
     if( lex->lookAhead(0) != '}' )
         reportError( i18n("} missing") );






More information about the umbrello-devel mailing list