From ef513fd4b049b214a03fbe6e62a5ea43680a7a9b Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 26 May 2017 10:58:42 +0200 Subject: remove unnecessary use of OString::getStr Change-Id: I0490efedf459190521f4339854b3394d57765fdb Reviewed-on: https://gerrit.libreoffice.org/38058 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sd/source/helper/simplereferencecomponent.cxx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'sd/source/helper') diff --git a/sd/source/helper/simplereferencecomponent.cxx b/sd/source/helper/simplereferencecomponent.cxx index 57c792ea5b0c..d17abdc8aadc 100644 --- a/sd/source/helper/simplereferencecomponent.cxx +++ b/sd/source/helper/simplereferencecomponent.cxx @@ -52,16 +52,10 @@ void SimpleReferenceComponent::release() { Dispose(); } - catch (RuntimeException & -#if OSL_DEBUG_LEVEL > 0 - exc -#endif - ) // don't break throw () + catch (RuntimeException & exc ) // don't break throw () { -#if OSL_DEBUG_LEVEL > 0 - OString msg( OUStringToOString( exc.Message, RTL_TEXTENCODING_ASCII_US ) ); - OSL_FAIL( msg.getStr() ); -#endif + (void)exc; + SAL_WARN( "sd", exc.Message ); } } -- cgit