[Libreoffice-commits] core.git: bridges/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Feb 11 08:17:24 UTC 2019


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

New commits:
commit 867384792244667a33cad79a7348b34b6008822b
Author:     Omer Fatih Celik <fcelik98 at gmail.com>
AuthorDate: Sun Feb 10 10:52:48 2019 +0300
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Mon Feb 11 09:17:02 2019 +0100

    tdf#112689: Replace changed O(U)StringBuffer::append() with operator+
    
    Change-Id: I9221608db417217dd7c97c0300ecedb67fa74132
    Reviewed-on: https://gerrit.libreoffice.org/67603
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

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..0ddc64b16f08 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 );


More information about the Libreoffice-commits mailing list