From e2303324f05696ee4c0e5c3d94818bc544d08c81 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Tue, 31 Jul 2007 13:00:20 +0000 Subject: 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 --- unodevtools/source/skeletonmaker/javatypemaker.cxx | 23 +++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) (limited to 'unodevtools') 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 { -- cgit