diff options
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/source/component.cxx | 6 | ||||
-rw-r--r-- | cppuhelper/source/component_context.cxx | 3 | ||||
-rw-r--r-- | cppuhelper/source/implbase.cxx | 12 | ||||
-rw-r--r-- | cppuhelper/source/weak.cxx | 6 |
4 files changed, 8 insertions, 19 deletions
diff --git a/cppuhelper/source/component.cxx b/cppuhelper/source/component.cxx index fdff1a21bab8..333812495fa6 100644 --- a/cppuhelper/source/component.cxx +++ b/cppuhelper/source/component.cxx @@ -92,12 +92,8 @@ void OComponentHelper::release() throw() catch (css::uno::RuntimeException & exc) { // release should not throw exceptions -#if OSL_DEBUG_LEVEL > 0 - OString msg( OUStringToOString( exc.Message, RTL_TEXTENCODING_ASCII_US ) ); - OSL_FAIL( msg.getStr() ); -#else (void) exc; // avoid warning about unused variable -#endif + SAL_WARN( "cppuhelper", exc.Message ); } // only the alive ref holds the object diff --git a/cppuhelper/source/component_context.cxx b/cppuhelper/source/component_context.cxx index 2df1b495689c..ee964e227c57 100644 --- a/cppuhelper/source/component_context.cxx +++ b/cppuhelper/source/component_context.cxx @@ -574,8 +574,7 @@ extern "C" { static void s_createComponentContext_v(va_list * pParam) catch (Exception & exc) { (void) exc; // avoid warning about unused variable - OSL_FAIL( OUStringToOString( - exc.Message, RTL_TEXTENCODING_ASCII_US ).getStr() ); + SAL_WARN( "cppuhelper", exc.Message ); xContext.clear(); } } diff --git a/cppuhelper/source/implbase.cxx b/cppuhelper/source/implbase.cxx index 6118ccb79fc1..c8b72f61a48f 100644 --- a/cppuhelper/source/implbase.cxx +++ b/cppuhelper/source/implbase.cxx @@ -77,10 +77,8 @@ void WeakComponentImplHelperBase::release() dispose(); } catch (RuntimeException const& exc) { // don't break throw () - OSL_FAIL( - OUStringToOString( - exc.Message, RTL_TEXTENCODING_ASCII_US ).getStr() ); - static_cast<void>(exc); + (void)exc; + SAL_WARN( "cppuhelper", exc.Message ); } OSL_ASSERT( rBHelper.bDisposed ); } @@ -204,10 +202,8 @@ void WeakAggComponentImplHelperBase::release() dispose(); } catch (RuntimeException const& exc) { // don't break throw () - OSL_FAIL( - OUStringToOString( - exc.Message, RTL_TEXTENCODING_ASCII_US ).getStr() ); - static_cast<void>(exc); + (void)exc; + SAL_WARN( "cppuhelper", exc.Message ); } OSL_ASSERT( rBHelper.bDisposed ); } diff --git a/cppuhelper/source/weak.cxx b/cppuhelper/source/weak.cxx index b52634b26ecc..6bd49fa212ec 100644 --- a/cppuhelper/source/weak.cxx +++ b/cppuhelper/source/weak.cxx @@ -243,10 +243,8 @@ void OWeakObject::disposeWeakConnectionPoint() p->dispose(); } catch (RuntimeException const& exc) { - OSL_FAIL( - OUStringToOString( - exc.Message, RTL_TEXTENCODING_ASCII_US ).getStr() ); - static_cast<void>(exc); + (void)exc; + SAL_WARN( "cppuhelper", exc.Message ); } p->release(); } |