summaryrefslogtreecommitdiff
path: root/unodevtools
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-07-31 13:00:05 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-07-31 13:00:05 +0000
commit3e6e0d27c773e4429c449e608d1c971c2d0392a5 (patch)
tree51955bf5c8eef0b370901ab4784cfb8ef551c73d /unodevtools
parentf024a128f895b7f122f780a3deb19be94abfc267 (diff)
INTEGRATION: CWS jsc18 (1.9.12); FILE MERGED
2007/07/16 14:05:45 jsc 1.9.12.1: #i75360# extend comment by the method name and move it directly behind the TODO keyword
Diffstat (limited to 'unodevtools')
-rw-r--r--unodevtools/source/skeletonmaker/cpptypemaker.cxx16
1 files changed, 10 insertions, 6 deletions
diff --git a/unodevtools/source/skeletonmaker/cpptypemaker.cxx b/unodevtools/source/skeletonmaker/cpptypemaker.cxx
index 600e975c1dc8..00955dc04d2b 100644
--- a/unodevtools/source/skeletonmaker/cpptypemaker.cxx
+++ b/unodevtools/source/skeletonmaker/cpptypemaker.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: cpptypemaker.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: ihi $ $Date: 2006-12-20 12:43:16 $
+ * last change: $Author: hr $ $Date: 2007-07-31 14:00:05 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -608,16 +608,19 @@ void printMethods(std::ostream & o,
if (classname.getLength() > 0)
o << classname;
- o << (codemaker::convertString(reader.getMethodName(method)).getStr())
- << '(';
+ const OString methodName(codemaker::convertString(reader.getMethodName(method)));
+
+ o << methodName << '(';
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{\n // TODO !!!\n";
+ o << "\n{\n";
if (!reader.getMethodReturnTypeName(method).equals(s)) {
+ o << " // TODO: Exchange the default return implementation for \""
+ << methodName << "\" !!!\n";
o << " // Exchange the default return implementation.\n"
" // NOTE: Default initialized polymorphic structs "
"can cause problems because of\n // missing default "
@@ -629,7 +632,8 @@ void printMethods(std::ostream & o,
reader.getMethodReturnTypeName(method)), 8, true);
o << ";";
} else {
- o << " // Insert your implementation here.";
+ o << " // TODO: Insert your implementation for \""
+ << methodName << "\" here.";
}
o << "\n}\n\n";
} else {