summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
authorSalih Sariyar <994.salih@gmail.com>2019-02-09 17:09:22 +0300
committerMichael Stahl <Michael.Stahl@cib.de>2019-02-19 17:38:19 +0100
commit12180ed8d6d64f78d37c6ee070da5a1ab3684843 (patch)
tree49bbbefd0891596250be03c4f0a6ab1fd10d0a53 /bridges
parent4d6c45c80ae37e2b92f37543329799e8c60f6021 (diff)
tdf#112689:Replace chained O(U)StringBuffer::append() with operator+
Change-Id: I4c9fc9595a498609309ce7734c312fea09680c2f Reviewed-on: https://gerrit.libreoffice.org/67586 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
Diffstat (limited to 'bridges')
-rw-r--r--bridges/source/cpp_uno/msvc_win32_intel/except.cxx14
1 files changed, 5 insertions, 9 deletions
diff --git a/bridges/source/cpp_uno/msvc_win32_intel/except.cxx b/bridges/source/cpp_uno/msvc_win32_intel/except.cxx
index 805eae40e5de..b706c1b343fc 100644
--- a/bridges/source/cpp_uno/msvc_win32_intel/except.cxx
+++ b/bridges/source/cpp_uno/msvc_win32_intel/except.cxx
@@ -552,15 +552,11 @@ int msci_filterCppException(
&pExcTypeDescr, aUNOname.pData );
if (pExcTypeDescr == 0)
{
- OUStringBuffer buf;
- buf.append(
- "[msci_uno bridge error] UNO type of "
- "C++ exception unknown: \"" );
- buf.append( aUNOname );
- buf.append( "\", RTTI-name=\"" );
- buf.append( aRTTIname );
- buf.append( "\"!" );
- RuntimeException exc( buf.makeStringAndClear() );
+ OUString sMsg = "[msci_uno bridge error] UNO type of "
+ "C++ exception unknown: \""
+ + aUNOname + "\", RTTI-name=\""
+ + aRTTIname + "\"!";
+ RuntimeException exc( sMsg );
uno_type_any_constructAndConvert(
pUnoExc, &exc,
cppu::UnoType<decltype(exc)>::get().getTypeLibType(), pCpp2Uno );