summaryrefslogtreecommitdiffstats
path: root/unodevtools
diff options
context:
space:
mode:
Diffstat (limited to 'unodevtools')
-rw-r--r--unodevtools/source/skeletonmaker/javatypemaker.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/unodevtools/source/skeletonmaker/javatypemaker.cxx b/unodevtools/source/skeletonmaker/javatypemaker.cxx
index 692b502e4800..4cf3fd677822 100644
--- a/unodevtools/source/skeletonmaker/javatypemaker.cxx
+++ b/unodevtools/source/skeletonmaker/javatypemaker.cxx
@@ -331,11 +331,7 @@ static void printSetPropertyMixinBody(
do
{
OString s(fieldtype.getToken(0, '<', nPos));
- OStringBuffer buffer(16);
- buffer.append("((");
- buffer.append(s.copy(s.lastIndexOf('/')+1));
- buffer.append(')');
- OString t = buffer.makeStringAndClear();
+ OString t{ "((" + s.copy(s.lastIndexOf('/')+1) + ")" };
if ( t == "((Optional)" ) {
optional=true;