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

Oliver Kellogg okellogg at users.sourceforge.net
Fri Apr 16 00:59:02 UTC 2004


CVS commit by okellogg: 

parseNamespace(): Fix disastrous typo. Improve diagnostic.


  M +3 -2      cpptree2uml.cpp   1.4


--- kdesdk/umbrello/umbrello/classparser/cpptree2uml.cpp  #1.3:1.4
@@ -51,6 +51,7 @@ void CppTree2Uml::parseTranslationUnit( 
 void CppTree2Uml::parseNamespace( NamespaceAST* ast )
 {
-    if( m_clsCnt >= 0 ){
-        kdDebug() << "CppTree2Uml::parseNamespace: **error** !!" << endl;
+    if (m_clsCnt > 0) {
+        kdDebug() << "CppTree2Uml::parseNamespace: error - cannot nest namespace inside class"
+                  << endl;
         return;
     }






More information about the umbrello-devel mailing list