summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 );