summaryrefslogtreecommitdiff
path: root/unodevtools/source
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-07-31 13:00:20 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-07-31 13:00:20 +0000
commite2303324f05696ee4c0e5c3d94818bc544d08c81 (patch)
treeb8f4a4478a6aebb4b6768328b91a13a631d0fca4 /unodevtools/source
parent3e6e0d27c773e4429c449e608d1c971c2d0392a5 (diff)
INTEGRATION: CWS jsc18 (1.5.30); FILE MERGED
2007/07/16 14:05:45 jsc 1.5.30.1: #i75360# extend comment by the method name and move it directly behind the TODO keyword
Diffstat (limited to 'unodevtools/source')
-rw-r--r--unodevtools/source/skeletonmaker/javatypemaker.cxx23
1 files changed, 12 insertions, 11 deletions
diff --git a/unodevtools/source/skeletonmaker/javatypemaker.cxx b/unodevtools/source/skeletonmaker/javatypemaker.cxx
index 6023c040662e..290c8491c6af 100644
--- a/unodevtools/source/skeletonmaker/javatypemaker.cxx
+++ b/unodevtools/source/skeletonmaker/javatypemaker.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: javatypemaker.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: hr $ $Date: 2006-06-20 00:50:45 $
+ * last change: $Author: hr $ $Date: 2007-07-31 14:00:20 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -527,21 +527,21 @@ void printMethods(std::ostream & o,
codemaker::convertString(
reader.getMethodReturnTypeName(method)),
false);
- o << ' '
- << (codemaker::convertString(reader.getMethodName(method)).
- getStr())
- << '(';
+
+ const OString methodName(codemaker::convertString(reader.getMethodName(method)));
+
+ o << ' ' << methodName.getStr() << '(';
printMethodParameters(o, options, manager, reader, method, false, true);
o << ')';
printExceptionSpecification(o, options, manager, reader, method);
if ( body ) {
static OUString s(RTL_CONSTASCII_USTRINGPARAM("void"));
if ( defaultbody ) {
- o << "\n" << indentation << "{\n" << indentation
- << " // TODO !!!\n";
+ o << "\n" << indentation << "{\n";
if ( !reader.getMethodReturnTypeName(method).equals(s) ) {
- o << indentation << " // Exchange the default return "
- "implementation.\n" << indentation << " // NOTE: "
+ o << indentation << " // TODO: Exchange the default return "
+ << "implementation for \"" << methodName << "\" !!!\n";
+ o << indentation << " // NOTE: "
"Default initialized polymorphic structs can cause problems"
"\n" << indentation << " // because of missing default "
"initialization of primitive types of\n" << indentation
@@ -556,7 +556,8 @@ void printMethods(std::ostream & o,
false, true);
o << ";";
} else {
- o << indentation << " // Insert your implementation here.";
+ o << indentation << " // TODO: Insert your implementation for \""
+ << methodName << "\" here.";
}
o << "\n" << indentation << "}\n\n";
} else {