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

Brian Thomas thomas at mail630.gsfc.nasa.gov
Thu Feb 5 09:02:04 UTC 2004


CVS commit by thomas: 

bug fix: code generation: not properly toggling accessormethods for java/cpp code. Was always leaving all accessor methods available under all conditions..bad!


  M +1 -3      cppsourcecodeaccessormethod.cpp   1.6
  M +0 -7      javacodeaccessormethod.cpp   1.4


--- kdesdk/umbrello/umbrello/codegenerators/javacodeaccessormethod.cpp  #1.3:1.4
@@ -202,11 +202,4 @@ void JavaCodeAccessorMethod::updateMetho
         setEndMethodText("}");
 
-        // now, determine if this code block will even appear at all. The 
-        // code generation policy will set this
-        if(javapolicy->getAutoGenerateAccessors())
-                setWriteOutText(true);
-        else
-                setWriteOutText(false);
-
 }
 

--- kdesdk/umbrello/umbrello/codegenerators/cppsourcecodeaccessormethod.cpp  #1.5:1.6
@@ -150,7 +150,5 @@ void CPPSourceCodeAccessorMethod::update
 
         // these ONLY appear if they arent inline
-        if(!isInlineMethod)
-                setWriteOutText(true);
-        else
+        if(isInlineMethod)
                 setWriteOutText(false);
 






More information about the umbrello-devel mailing list