summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2023-03-24 09:29:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-03-24 09:50:49 +0000
commitc76fb95d45f0240ee00f831a88e8a52bf3faacbc (patch)
tree482c9442f5f5b1576626e6eb76ff42ae59350816 /bridges
parent3c3a47e911a7ee4d199fe96bd3003c7d9afa9deb (diff)
loplugin:stringadd in b*
after my patch to merge the bufferadd loplugin into stringadd Change-Id: Ieb9b4f5154173738e26b429b55c7a3ea38733553 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149478 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'bridges')
-rw-r--r--bridges/source/jni_uno/jni_info.cxx9
-rw-r--r--bridges/source/jni_uno/jni_uno2java.cxx3
2 files changed, 3 insertions, 9 deletions
diff --git a/bridges/source/jni_uno/jni_info.cxx b/bridges/source/jni_uno/jni_info.cxx
index 3dd00d01c24d..0195ed9d1300 100644
--- a/bridges/source/jni_uno/jni_info.cxx
+++ b/bridges/source/jni_uno/jni_info.cxx
@@ -166,8 +166,7 @@ JNI_interface_type_info::JNI_interface_type_info(
&attribute_td->aBase.pMemberName );
// getter
- sig_buf.append( "()" );
- sig_buf.append( type_sig );
+ sig_buf.append( "()" + type_sig );
OString method_signature( sig_buf.makeStringAndClear() );
OString method_name(
OUStringToOString(
@@ -182,11 +181,7 @@ JNI_interface_type_info::JNI_interface_type_info(
if (! attribute_td->bReadOnly)
{
// setter
- sig_buf.ensureCapacity( 64 );
- sig_buf.append( '(' );
- sig_buf.append( type_sig );
- sig_buf.append( ")V" );
- method_signature = sig_buf.makeStringAndClear();
+ method_signature = "(" + type_sig + ")V";
method_name = OUStringToOString(
rtl::Concat2View("set" + member_name),
RTL_TEXTENCODING_JAVA_UTF8 );
diff --git a/bridges/source/jni_uno/jni_uno2java.cxx b/bridges/source/jni_uno/jni_uno2java.cxx
index bc908fc5db98..98666dfc1929 100644
--- a/bridges/source/jni_uno/jni_uno2java.cxx
+++ b/bridges/source/jni_uno/jni_uno2java.cxx
@@ -775,8 +775,7 @@ void UNO_proxy_dispatch(
typelib_InterfaceMemberTypeDescription const * >(
member_td )->pMemberName ) );
}
- buf.append( ": " );
- buf.append( err.m_message );
+ buf.append( ": " + err.m_message );
// binary identical struct
css::uno::RuntimeException exc(
buf.makeStringAndClear(),