summaryrefslogtreecommitdiff
path: root/unotools/source/i18n
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-09-20 11:40:33 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-09-20 16:54:54 +0100
commit2f33cf5115df156cc17f6218ca42ca367cd32cf4 (patch)
tree37207bf769727c474a9273ce5cb5d4e37dd1d907 /unotools/source/i18n
parentbe0cf0693368642f94a794c64792020e3613e869 (diff)
ByteString->rtl::OStringBuffer
Diffstat (limited to 'unotools/source/i18n')
-rw-r--r--unotools/source/i18n/calendarwrapper.cxx18
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