diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-18 10:56:00 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-18 10:56:00 +0100 |
commit | 4f7e948af4f6673b048b71228381572a5af4a8d8 (patch) | |
tree | dc652ecf3fa821af69fcd37ea193e8b0f443a3fc /cppuhelper | |
parent | 6759faa1e65c311b07b65e64276cd9f3a9480004 (diff) |
clean up
Change-Id: I02fa1aea1070a6485b96a67f7d6f7f56c022bd9e
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/component_context.cxx | 12 |
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(), |