summaryrefslogtreecommitdiff
path: root/i18npool/source/calendar
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-04-22 12:48:05 +0200
committerNoel Grandin <noel@peralex.com>2014-04-23 11:11:47 +0200
commite4f690b0389263c35f83fa8b58382c6518d00f62 (patch)
treee89a15c8f29c51394ff539eabc6e122ab6d1c70f /i18npool/source/calendar
parentfc06e00fd4ae2b82d827163e72eb6824e88dbd40 (diff)
i18npool: sal_Bool->bool
Change-Id: Id73ee64dbf8586743f0e436e004e663a65d4548f
Diffstat (limited to 'i18npool/source/calendar')
-rw-r--r--i18npool/source/calendar/calendar_gregorian.cxx8
-rw-r--r--i18npool/source/calendar/calendar_jewish.cxx6
2 files changed, 7 insertions, 7 deletions
diff --git a/i18npool/source/calendar/calendar_gregorian.cxx b/i18npool/source/calendar/calendar_gregorian.cxx
index f08c94affaf6..e5f6fc82fd0f 100644
--- a/i18npool/source/calendar/calendar_gregorian.cxx
+++ b/i18npool/source/calendar/calendar_gregorian.cxx
@@ -806,13 +806,13 @@ Calendar_gregorian::isValid() throw(RuntimeException, std::exception)
static sal_Int16 SAL_CALL NatNumForCalendar(const com::sun::star::lang::Locale& aLocale,
sal_Int32 nCalendarDisplayCode, sal_Int16 nNativeNumberMode, sal_Int16 value )
{
- sal_Bool isShort = ((nCalendarDisplayCode == CalendarDisplayCode::SHORT_YEAR ||
+ bool isShort = ((nCalendarDisplayCode == CalendarDisplayCode::SHORT_YEAR ||
nCalendarDisplayCode == CalendarDisplayCode::LONG_YEAR) && value >= 100) ||
nCalendarDisplayCode == CalendarDisplayCode::SHORT_QUARTER ||
nCalendarDisplayCode == CalendarDisplayCode::LONG_QUARTER;
- sal_Bool isChinese = aLocale.Language == "zh";
- sal_Bool isJapanese = aLocale.Language == "ja";
- sal_Bool isKorean = aLocale.Language == "ko";
+ bool isChinese = aLocale.Language == "zh";
+ bool isJapanese = aLocale.Language == "ja";
+ bool isKorean = aLocale.Language == "ko";
if (isChinese || isJapanese || isKorean) {
switch (nNativeNumberMode) {
diff --git a/i18npool/source/calendar/calendar_jewish.cxx b/i18npool/source/calendar/calendar_jewish.cxx
index 02da34c2ddd8..0dc82bd1ac56 100644
--- a/i18npool/source/calendar/calendar_jewish.cxx
+++ b/i18npool/source/calendar/calendar_jewish.cxx
@@ -50,7 +50,7 @@ Calendar_jewish::Calendar_jewish()
const int HebrewEpoch = -1373429; // Absolute date of start of Hebrew calendar
// True if year is an Hebrew leap year
-sal_Bool HebrewLeapYear(sal_Int32 year) {
+bool HebrewLeapYear(sal_Int32 year) {
return ((((7 * year) + 1) % 19) < 7);
}
@@ -102,12 +102,12 @@ sal_Int32 DaysInHebrewYear(sal_Int32 year) {
}
// True if Heshvan is long in Hebrew year.
-sal_Bool LongHeshvan(sal_Int32 year) {
+bool LongHeshvan(sal_Int32 year) {
return ((DaysInHebrewYear(year) % 10) == 5);
}
// True if Kislev is short in Hebrew year.
-sal_Bool ShortKislev(sal_Int32 year) {
+bool ShortKislev(sal_Int32 year) {
return ((DaysInHebrewYear(year) % 10) == 3);
}