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

Ben Burton bab at debian.org
Wed Jun 23 16:25:08 UTC 2004


CVS commit by benb: 

Fix C++ code generator to use keyword "virtual" when declaring abstract operations.


  M +1 -1      cppheadercodeoperation.cpp   1.11.2.1


--- kdesdk/umbrello/umbrello/codegenerators/cppheadercodeoperation.cpp  #1.11:1.11.2.1
@@ -98,5 +98,5 @@ void CPPHeaderCodeOperation::updateMetho
         // write as an abstract operation if explicitly stated OR if child of interface
         if((isInterface || o->getAbstract()) && !isInlineMethod)
-                startText += " = 0";
+                startText = "virtual " + startText + " = 0";
         startText += (isInlineMethod ? " {" : ";");
 






More information about the umbrello-devel mailing list