summaryrefslogtreecommitdiff
path: root/cppuhelper
diff options
context:
space:
mode:
Diffstat (limited to 'cppuhelper')
-rw-r--r--cppuhelper/source/component_context.cxx12
1 files changed, 5 insertions, 7 deletions
diff --git a/cppuhelper/source/component_context.cxx b/cppuhelper/source/component_context.cxx
index be4065d61479..f19e243a92d8 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(),