[Uml-devel] [Bug 97188] inline functions are generated in cpp file

Paulo Roberto Rodrigues Sehn paulo.sehn at gmail.com
Tue Jul 12 18:10:43 UTC 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=97188         




------- Additional Comments From paulo.sehn gmail com  2005-07-13 03:06 -------
I would like to suggest this patch to fix this issue

Index: umbrello/codegenerators/cppsourcecodeoperation.cpp
===================================================================
--- umbrello/codegenerators/cppsourcecodeoperation.cpp  (revision 434093)
+++ umbrello/codegenerators/cppsourcecodeoperation.cpp  (working copy)
 @ -40,7 +40,7  @
 void CPPSourceCodeOperation::updateContent( )
 {
     CPPCodeGenerationPolicy * policy = (CPPCodeGenerationPolicy*) getParentDocument()->getParentGenerator()->getPolicy();
-    bool isInlineMethod = policy->getAccessorsAreInline( );
+    bool isInlineMethod = policy->getOperationsAreInline();
 
     if(!isInlineMethod)
         setText(""); // change whatever it is to "";
 @ -57,7 +57,7  @
     UMLClassifier * c = doc->getParentClassifier();
     UMLOperation * o = getParentOperation();
     bool isInterface = doc->parentIsInterface();
-    bool isInlineMethod = policy->getAccessorsAreInline( );
+    bool isInlineMethod = policy->getOperationsAreInline();
 
     // first, the comment on the operation
     QString comment = o->getDoc();
Index: umbrello/codegenerators/cppheadercodeoperation.cpp
===================================================================
--- umbrello/codegenerators/cppheadercodeoperation.cpp  (revision 434093)
+++ umbrello/codegenerators/cppheadercodeoperation.cpp  (working copy)
 @ -40,7 +40,7  @
 void CPPHeaderCodeOperation::updateContent( )
 {
     CPPCodeGenerationPolicy * policy = (CPPCodeGenerationPolicy*) getParentDocument()->getParentGenerator()->getPolicy();
-    bool isInlineMethod = policy->getAccessorsAreInline( );
+    bool isInlineMethod = policy->getOperationsAreInline( );
 
     if(isInlineMethod)
         setText(""); // change whatever it is to "";
 @ -95,6 +95,8  @
             paramStr  += ", ";
     }
 
+    // set using the sterreotype if apropriated
+    
     // set start/end method text
     QString startText = methodReturnType+" "+methodName+" ("+paramStr+")";




More information about the umbrello-devel mailing list