unodevtools/source/skeletonmaker/javatypemaker.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-)
New commits: commit be3cb2cb8df286fba0b141692307f0342aeeecee Author: Matteo Casalin <matteo.casa...@yahoo.com> AuthorDate: Sat Jan 26 00:51:13 2019 +0100 Commit: Matteo Casalin <matteo.casa...@yahoo.com> CommitDate: Sun Jan 27 11:41:14 2019 +0100 Use optimized OUString concatenation Change-Id: I8314d0e6a6ac922a88ff891af2f1071e7b5692e6 Reviewed-on: https://gerrit.libreoffice.org/66943 Tested-by: Jenkins Reviewed-by: Matteo Casalin <matteo.casa...@yahoo.com> 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; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits