[Uml-devel] branches/KDE/3.5/kdesdk/umbrello/umbrello/codegenerators

Oliver Kellogg okellogg at users.sourceforge.net
Thu May 11 14:58:02 UTC 2006


SVN commit 539872 by okellogg:

get{Java,Ruby}Policy(): Fix.

 M  +1 -1      javacodegenerator.cpp  
 M  +1 -1      rubycodegenerator.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/umbrello/codegenerators/javacodegenerator.cpp #539871:539872
@@ -87,7 +87,7 @@
 
 
 JavaCodeGenerationPolicy * JavaCodeGenerator::getJavaPolicy() {
-    return dynamic_cast<JavaCodeGenerationPolicy*>(m_codegeneratorpolicy);
+    return dynamic_cast<JavaCodeGenerationPolicy*>(UMLApp::app()->getPolicyExt());
 }
 
 bool JavaCodeGenerator::getAutoGenerateAttribAccessors ( )
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/codegenerators/rubycodegenerator.cpp #539871:539872
@@ -65,7 +65,7 @@
 
 
 RubyCodeGenerationPolicy * RubyCodeGenerator::getRubyPolicy() {
-    return dynamic_cast<RubyCodeGenerationPolicy*>(m_codegeneratorpolicy);
+    return dynamic_cast<RubyCodeGenerationPolicy*>(UMLApp::app()->getPolicyExt());
 }
 
 bool RubyCodeGenerator::getAutoGenerateAttribAccessors ( )




More information about the umbrello-devel mailing list