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

Brian Thomas thomas at mail630.gsfc.nasa.gov
Mon Dec 22 09:42:01 UTC 2003


CVS commit by thomas: 

 bug fix: dont use Unix \n, 'endLine' characters based on user choice are the way to go.


  M +3 -1      cppheadercodeoperation.cpp   1.11
  M +2 -1      javacodeoperation.cpp   1.10


--- kdesdk/umbrello/umbrello/codegenerators/cppheadercodeoperation.cpp  #1.10:1.11
@@ -58,9 +58,11 @@ void CPPHeaderCodeOperation::updateMetho
         bool isInlineMethod = policy->getOperationsAreInline( );
 
+        QString endLine = getNewLineEndingChars();
+
         // first, the comment on the operation
         QString comment = o->getDoc();
         UMLAttributeList* paramaters = o->getParmList();
         for(UMLAttributeListIt iterator(*paramaters); iterator.current(); ++iterator) {
-                comment += "\n at param " + iterator.current()->getName() + " ";
+                comment += endLine + "@param " + iterator.current()->getName() + " ";
                 comment += iterator.current()->getDoc();
         }

--- kdesdk/umbrello/umbrello/codegenerators/javacodeoperation.cpp  #1.9:1.10
@@ -41,4 +41,5 @@ void JavaCodeOperation::updateMethodDecl
         UMLOperation * o = getParentOperation();
         bool isInterface = javadoc->getParentClassifier()->isInterface();
+        QString endLine = getNewLineEndingChars();
 
         // first, the comment on the operation
@@ -46,5 +47,5 @@ void JavaCodeOperation::updateMethodDecl
         UMLAttributeList* paramaters = o->getParmList();
         for(UMLAttributeListIt iterator(*paramaters); iterator.current(); ++iterator) {
-                comment += "\n at param " + iterator.current()->getName() + " ";
+                comment += endLine + "@param " + iterator.current()->getName() + " ";
                 comment += iterator.current()->getDoc();
         }






More information about the umbrello-devel mailing list