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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Feb 19 16:38:40 UTC 2019


 bridges/source/cpp_uno/msvc_win32_intel/except.cxx |   14 +++++---------
 1 file changed, 5 insertions(+), 9 deletions(-)

New commits:
commit 12180ed8d6d64f78d37c6ee070da5a1ab3684843
Author:     Salih Sariyar <994.salih at gmail.com>
AuthorDate: Sat Feb 9 17:09:22 2019 +0300
Commit:     Michael Stahl <Michael.Stahl at cib.de>
CommitDate: Tue Feb 19 17:38:19 2019 +0100

    tdf#112689:Replace chained O(U)StringBuffer::append() with operator+
    
    Change-Id: I4c9fc9595a498609309ce7734c312fea09680c2f
    Reviewed-on: https://gerrit.libreoffice.org/67586
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <Michael.Stahl at cib.de>

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 );


More information about the Libreoffice-commits mailing list