summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmer Fatih Celik <fcelik98@gmail.com>2019-02-21 14:52:27 +0300
committerMichael Stahl <Michael.Stahl@cib.de>2019-02-22 11:53:56 +0100
commitc2fce89079f10103e64eaa7a687b131bc36cd8af (patch)
treeab490bece424a0040b10ce5dba12c1947ea5f5e8
parentf9556fc409cb87097aec5c46332e6eac2d9c66a2 (diff)
tdf#112689: Replace changed O(U)StringBuffer::append() with operator+
Change-Id: Ief3f2554bf2271dbfa60ff9fbc04e3c5d3540f68 Reviewed-on: https://gerrit.libreoffice.org/68146 Tested-by: Jenkins Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
-rw-r--r--bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx15
1 files changed, 6 insertions, 9 deletions
diff --git a/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx b/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx
index 753f814a3367..cd292c7db8b0 100644
--- a/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx
+++ b/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx
@@ -879,15 +879,12 @@ int mscx_filterCppException(
&pExcTD, aUNOname.pData );
if (pExcTD == nullptr)
{
- OUStringBuffer buf;
- buf.append(
- "[mscx_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 = "[mscx_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 );