[Uml-devel] kdesdk/umbrello/umbrello

Oliver Kellogg okellogg at users.sourceforge.net
Sun Dec 5 20:31:01 UTC 2004


CVS commit by okellogg: 

parseOperation(): Return type "void" is synonymous for none.


  M +6 -4      model_utils.cpp   1.10


--- kdesdk/umbrello/umbrello/model_utils.cpp  #1.9:1.10
@@ -215,4 +215,5 @@ Parse_Status parseOperation(QString m, O
         if (pos != -1) {  // return type is optional
                 QString retType = pat.cap(1);
+                if (retType != "void") {
                 UMLObject *pRetType = pDoc->findUMLObject(retType, Uml::ot_UMLObject, owningScope);
                 if (pRetType == NULL)
@@ -220,4 +221,5 @@ Parse_Status parseOperation(QString m, O
                 desc.m_pReturnType = dynamic_cast<UMLClassifier*>(pRetType);
         }
+        }
         desc.m_args.clear();
         pat = QRegExp( "\\((.*)\\)" );






More information about the umbrello-devel mailing list