[Libreoffice-commits] core.git: unodevtools/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Sun Jan 27 10:41:36 UTC 2019
unodevtools/source/skeletonmaker/javatypemaker.cxx | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
New commits:
commit be3cb2cb8df286fba0b141692307f0342aeeecee
Author: Matteo Casalin <matteo.casalin at yahoo.com>
AuthorDate: Sat Jan 26 00:51:13 2019 +0100
Commit: Matteo Casalin <matteo.casalin at 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.casalin at 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;
More information about the Libreoffice-commits
mailing list