bridges/source/cpp_uno/msvc_win32_x86-64/except.cxx |   15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

New commits:
commit 4f7f1dd12406655f71195c577ba7f7d128a93ce4
Author:     Tor Lillqvist <t...@collabora.com>
AuthorDate: Mon Feb 11 15:16:06 2019 +0200
Commit:     Tor Lillqvist <t...@collabora.com>
CommitDate: Mon Feb 11 15:16:06 2019 +0200

    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.

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<decltype(exc)>::get().getTypeLibType(), 
pCpp2Uno );
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to