diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-22 09:02:16 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-22 15:01:04 +0100 |
commit | ac58231a01186d0935d0ff5fb2485d8750ed5022 (patch) | |
tree | 386ecb69491890ca62bd049a45bb7ee26e8dd5f5 /svtools/source/control/calendar.cxx | |
parent | callcatcher: remove unused code (diff) | |
download | core-ac58231a01186d0935d0ff5fb2485d8750ed5022.tar.gz core-ac58231a01186d0935d0ff5fb2485d8750ed5022.zip |
ByteString->rtl::OString[Buffer]
Diffstat (limited to 'svtools/source/control/calendar.cxx')
-rw-r--r-- | svtools/source/control/calendar.cxx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/svtools/source/control/calendar.cxx b/svtools/source/control/calendar.cxx index 71b28846ac55..46101bc413a5 100644 --- a/svtools/source/control/calendar.cxx +++ b/svtools/source/control/calendar.cxx @@ -29,6 +29,7 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_svtools.hxx" +#include <rtl/strbuf.hxx> #include <vcl/svapp.hxx> #include <tools/table.hxx> #include <vcl/help.hxx> @@ -234,13 +235,15 @@ void Calendar::ImplInit( WinBits nWinStyle ) if (maCalendarWrapper.getUniqueID() != aGregorian) { #ifdef DBG_UTIL - ByteString aMsg( "Calendar::ImplInit: No ``gregorian'' calendar available for locale ``"); + rtl::OStringBuffer aMsg( "Calendar::ImplInit: No ``gregorian'' calendar available for locale ``"); lang::Locale aLoc( Application::GetAppLocaleDataWrapper().getLocale()); - aMsg += ByteString( String( aLoc.Language), RTL_TEXTENCODING_UTF8); - aMsg += '-'; - aMsg += ByteString( String( aLoc.Country), RTL_TEXTENCODING_UTF8); - aMsg += "'' and other calendars aren't supported. Using en-US fallback."; - DBG_ERRORFILE( aMsg.GetBuffer()); + aMsg.append(rtl::OUStringToOString(aLoc.Language, + RTL_TEXTENCODING_UTF8)); + aMsg.append('-'); + aMsg.append(rtl::OUStringToOString(aLoc.Country, + RTL_TEXTENCODING_UTF8)); + aMsg.append("'' and other calendars aren't supported. Using en-US fallback."); + DBG_ERRORFILE(aMsg.getStr()); #endif /* If we ever wanted to support other calendars than Gregorian a lot of * rewrite would be necessary to internally replace use of class Date |