From 1de8ddb72e6a1bc75f3e70b0024c940098948a4f Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Wed, 18 Jan 2012 14:05:54 +0100 Subject: [PATCH] convert one freshly introduced DBG_ERRORFILE to SAL_WARN --- unotools/source/i18n/localedatawrapper.cxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/unotools/source/i18n/localedatawrapper.cxx b/unotools/source/i18n/localedatawrapper.cxx index ed95598db756..2e8ebf7619c6 100644 --- a/unotools/source/i18n/localedatawrapper.cxx +++ b/unotools/source/i18n/localedatawrapper.cxx @@ -1900,15 +1900,9 @@ void LocaleDataWrapper::evaluateLocaleDataChecking() if ( xLD.is() ) return xLD->getDateAcceptancePatterns( getLocale() ); } - catch ( Exception& e ) + catch (const Exception& e) { -#ifdef DBG_UTIL - rtl::OStringBuffer aMsg("getDateAcceptancePatterns: Exception caught\n"); - aMsg.append(rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8)); - DBG_ERRORFILE(aMsg.getStr()); -#else - (void)e; -#endif + SAL_WARN( "unotools.i18n", "getDateAcceptancePatterns: Exception caught " << e.Message ); } return ::com::sun::star::uno::Sequence< ::rtl::OUString >(0); }