summaryrefslogtreecommitdiff
path: root/i18npool/source/calendar/calendarImpl.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'i18npool/source/calendar/calendarImpl.cxx')
-rw-r--r--i18npool/source/calendar/calendarImpl.cxx15
1 files changed, 10 insertions, 5 deletions
diff --git a/i18npool/source/calendar/calendarImpl.cxx b/i18npool/source/calendar/calendarImpl.cxx
index 2d09d047c7cb..787f0ae150cc 100644
--- a/i18npool/source/calendar/calendarImpl.cxx
+++ b/i18npool/source/calendar/calendarImpl.cxx
@@ -1,3 +1,4 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
@@ -34,8 +35,9 @@
using namespace ::com::sun::star::uno;
using namespace ::com::sun::star::lang;
-using namespace ::com::sun::star::i18n;
-using namespace ::rtl;
+using ::rtl::OUString;
+
+namespace com { namespace sun { namespace star { namespace i18n {
#define ERROR RuntimeException()
@@ -81,7 +83,7 @@ CalendarImpl::loadCalendar(const OUString& uniqueID, const Locale& rLocale ) thr
if (i >= sal::static_int_cast<sal_Int32>(lookupTable.size())) {
Reference < XInterface > xI = xMSF->createInstance(
- OUString::createFromAscii("com.sun.star.i18n.Calendar_") + uniqueID);
+ OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.i18n.Calendar_")) + uniqueID);
if ( ! xI.is() ) {
// check if the calendar is defined in localedata, load gregorian calendar service.
@@ -89,7 +91,7 @@ CalendarImpl::loadCalendar(const OUString& uniqueID, const Locale& rLocale ) thr
for (i = 0; i < xC.getLength(); i++) {
if (uniqueID == xC[i].Name) {
xI = xMSF->createInstance(
- OUString::createFromAscii("com.sun.star.i18n.Calendar_gregorian"));
+ OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.i18n.Calendar_gregorian")));
break;
}
}
@@ -303,7 +305,7 @@ CalendarImpl::getDisplayString( sal_Int32 nCalendarDisplayCode, sal_Int16 nNativ
OUString SAL_CALL
CalendarImpl::getImplementationName(void) throw( RuntimeException )
{
- return OUString::createFromAscii("com.sun.star.i18n.CalendarImpl");
+ return OUString(RTL_CONSTASCII_USTRINGPARAM("com.sun.star.i18n.CalendarImpl"));
}
const sal_Char cCalendar[] = "com.sun.star.i18n.LocaleCalendar";
@@ -322,3 +324,6 @@ CalendarImpl::getSupportedServiceNames(void) throw( RuntimeException )
return aRet;
}
+}}}}
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */