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

Oliver Kellogg okellogg at users.sourceforge.net
Fri Apr 29 21:35:15 UTC 2005


CVS commit by okellogg: 

updateMethodDeclaration(): Generate "static" keyword if required.
Thanks to Jay Snyder for reporting the problem.


  M +2 -0      cppheadercodeoperation.cpp   1.15


--- kdesdk/umbrello/umbrello/codegenerators/cppheadercodeoperation.cpp  #1.14:1.15
@@ -102,4 +102,6 @@ void CPPHeaderCodeOperation::updateMetho
         if((isInterface || o->getAbstract()) && !isInlineMethod)
                 startText = "virtual " + startText + " = 0";
+        else if (o->getStatic())                // prefix with "static" if required
+                startText = "static "  + startText;
         startText += (isInlineMethod ? " {" : ";");
 






More information about the umbrello-devel mailing list