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

Oliver Kellogg okellogg at users.sourceforge.net
Thu Jul 14 22:26:50 UTC 2005


SVN commit 434723 by okellogg:

saveToXMI(): Remove special handling of "void" as suggested by Paulo Sehn.


 M  +6 -8      operation.cpp  


--- trunk/KDE/kdesdk/umbrello/umbrello/operation.cpp #434722:434723
@@ -243,14 +243,12 @@
     QDomElement operationElement = UMLObject::save("UML:Operation", qDoc);
     QDomElement featureElement = qDoc.createElement( "UML:BehavioralFeature.parameter" );
     if (m_pSecondary) {
-        if (m_pSecondary->getName() != "void") {
-            QDomElement retElement = qDoc.createElement("UML:Parameter");
-            UMLDoc *pDoc = UMLApp::app()->getDocument();
-            retElement.setAttribute( "xmi.id", ID2STR(pDoc->getUniqueID()) );
-            retElement.setAttribute( "type", ID2STR(m_pSecondary->getID()) );
-            retElement.setAttribute( "kind", "return" );
-            featureElement.appendChild( retElement );
-        }
+        QDomElement retElement = qDoc.createElement("UML:Parameter");
+        UMLDoc *pDoc = UMLApp::app()->getDocument();
+        retElement.setAttribute( "xmi.id", ID2STR(pDoc->getUniqueID()) );
+        retElement.setAttribute( "type", ID2STR(m_pSecondary->getID()) );
+        retElement.setAttribute( "kind", "return" );
+        featureElement.appendChild( retElement );
     } else {
         //operationElement.setAttribute( "type", m_SecondaryId );
         kdDebug() << "UMLOperation::saveToXMI: m_SecondaryId is "




More information about the umbrello-devel mailing list