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

Oliver Kellogg okellogg at users.sourceforge.net
Fri Apr 29 21:37:24 UTC 2005


CVS commit by okellogg: 

Backport following fix from HEAD:
> updateMethodDeclaration(): Generate "static" keyword if required.
> Thanks to Jay Snyder for reporting the problem.


  M +2 -0      cppheadercodeoperation.cpp   1.14.2.1


--- kdesdk/umbrello/umbrello/codegenerators/cppheadercodeoperation.cpp  #1.14:1.14.2.1
@@ -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