diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-01-26 00:51:13 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2019-01-27 11:41:14 +0100 |
commit | be3cb2cb8df286fba0b141692307f0342aeeecee (patch) | |
tree | 030df031560895771f702889613223c91398987e /unodevtools | |
parent | f7eae57c6511a95ee28cc8a8739f05f67e4f2395 (diff) |
Use optimized OUString concatenation
Change-Id: I8314d0e6a6ac922a88ff891af2f1071e7b5692e6
Reviewed-on: https://gerrit.libreoffice.org/66943
Tested-by: Jenkins
Reviewed-by: Matteo Casalin <matteo.casalin@yahoo.com>
Diffstat (limited to 'unodevtools')
-rw-r--r-- | unodevtools/source/skeletonmaker/javatypemaker.cxx | 6 |
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; |