diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-20 11:40:33 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-20 16:54:54 +0100 |
commit | 2f33cf5115df156cc17f6218ca42ca367cd32cf4 (patch) | |
tree | 37207bf769727c474a9273ce5cb5d4e37dd1d907 /unotools | |
parent | be0cf0693368642f94a794c64792020e3613e869 (diff) |
ByteString->rtl::OStringBuffer
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/i18n/calendarwrapper.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/unotools/source/i18n/calendarwrapper.cxx b/unotools/source/i18n/calendarwrapper.cxx index bd79ab71ee01..67e6e24e053b 100644 --- a/unotools/source/i18n/calendarwrapper.cxx +++ b/unotools/source/i18n/calendarwrapper.cxx @@ -89,17 +89,17 @@ void CalendarWrapper::loadCalendar( const ::rtl::OUString& rUniqueID, const ::co if ( xC.is() ) xC->loadCalendar( rUniqueID, rLocale ); } - catch ( Exception& e ) + catch (const Exception& e) { #ifdef DBG_UTIL - ByteString aMsg( "loadCalendar: Exception caught\nrequested: " ); - aMsg += ByteString( String( rUniqueID ), RTL_TEXTENCODING_UTF8 ); - aMsg += " Locale: "; - aMsg += ByteString( String( rLocale.Language ), RTL_TEXTENCODING_UTF8 ); - aMsg += '_'; - aMsg += ByteString( String( rLocale.Country ), RTL_TEXTENCODING_UTF8 ); - aMsg += ByteString( String( e.Message ), RTL_TEXTENCODING_UTF8 ); - DBG_ERRORFILE( aMsg.GetBuffer() ); + rtl::OStringBuffer aMsg(RTL_CONSTASCII_STRINGPARAM("loadCalendar: Exception caught\nrequested: ")); + aMsg.append(rtl::OUStringToOString(rUniqueID, RTL_TEXTENCODING_UTF8)); + aMsg.append(RTL_CONSTASCII_STRINGPARAM(" Locale: ")); + aMsg.append(rtl::OUStringToOString(rLocale.Language, RTL_TEXTENCODING_UTF8)); + aMsg.append('_'); + aMsg.append(rtl::OUStringToOString(rLocale.Country, RTL_TEXTENCODING_UTF8)); + aMsg.append(rtl::OUStringToOString(e.Message, RTL_TEXTENCODING_UTF8)); + DBG_ERRORFILE(aMsg.getStr()); #else (void)e; #endif |