From 4f7f1dd12406655f71195c577ba7f7d128a93ce4 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 11 Feb 2019 15:16:06 +0200 Subject: Revert "tdf#112689: Replace changed O(U)StringBuffer::append() with operator+" Sorry, but this change breaks the build: bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx(884): error C2110: '+': cannot add two pointers This reverts commit 867384792244667a33cad79a7348b34b6008822b. --- bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'bridges') 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 0ddc64b16f08..753f814a3367 100644 --- a/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx +++ b/bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx @@ -879,12 +879,15 @@ int mscx_filterCppException( &pExcTD, aUNOname.pData ); if (pExcTD == nullptr) { - OUString sMsg = "[mscx_uno bridge error] UNO type of " - + "C++ exception unknown: \"" - + aUNOname + "\", RTTI-name=\"" - + aRTTIname + "\"!"; - RuntimeException exc( sMsg ); - + 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() ); uno_type_any_constructAndConvert( pUnoExc, &exc, cppu::UnoType::get().getTypeLibType(), pCpp2Uno ); -- cgit