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

Stephan Bergmann sbergman at redhat.com
Tue Feb 18 10:56:31 CET 2014


 cppuhelper/source/component_context.cxx |   12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)

New commits:
commit 4f7e948af4f6673b048b71228381572a5af4a8d8
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Tue Feb 18 10:56:00 2014 +0100

    clean up
    
    Change-Id: I02fa1aea1070a6485b96a67f7d6f7f56c022bd9e

diff --git a/cppuhelper/source/component_context.cxx b/cppuhelper/source/component_context.cxx
index be4065d..f19e243 100644
--- a/cppuhelper/source/component_context.cxx
+++ b/cppuhelper/source/component_context.cxx
@@ -598,14 +598,12 @@ Any ComponentContext::lookupMap( OUString const & rName )
     {
         throw;
     }
-    catch (Exception & exc) // rethrow as WrappedTargetRuntimeException
+    catch (Exception & exc)
     {
-        OUStringBuffer buf;
-        buf.append( "exception occurred raising singleton \"" );
-        buf.append( rName );
-        buf.append( "\": " );
-        buf.append( exc.Message );
-        SAL_WARN("cppuhelper", buf.makeStringAndClear());
+        SAL_WARN(
+            "cppuhelper",
+            "exception occurred raising singleton \"" << rName << "\": "
+            << exc.Message);
     }
 
     SAL_WARN_IF(!xInstance.is(),


More information about the Libreoffice-commits mailing list