From d7e704fc5c8f5f0678ad70dbf14966859f0613c9 Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Tue, 20 Jun 2006 03:43:26 +0000 Subject: INTEGRATION: CWS warnings01 (1.9.14); FILE MERGED 2006/03/08 13:19:09 nn 1.9.14.2: #i53898# warning-free code 2005/10/24 14:58:21 nn 1.9.14.1: #i53898# warning-free code --- i18npool/source/calendar/calendar_jewish.cxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'i18npool/source/calendar') diff --git a/i18npool/source/calendar/calendar_jewish.cxx b/i18npool/source/calendar/calendar_jewish.cxx index 395cf26093b2..c2c7519526e6 100644 --- a/i18npool/source/calendar/calendar_jewish.cxx +++ b/i18npool/source/calendar/calendar_jewish.cxx @@ -4,9 +4,9 @@ * * $RCSfile: calendar_jewish.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: rt $ $Date: 2005-09-07 17:04:10 $ + * last change: $Author: hr $ $Date: 2006-06-20 04:43:26 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -45,7 +45,8 @@ using namespace ::rtl; #define ERROR RuntimeException() -static UErrorCode status; // status is shared in all calls to Calendar, it has to be reset for each call. +// not used +//static UErrorCode status; // status is shared in all calls to Calendar, it has to be reset for each call. Calendar_jewish::Calendar_jewish() { @@ -270,7 +271,7 @@ void SAL_CALL Calendar_jewish::mapFromGregorian() throw(RuntimeException) HebrewDate hd(Temp); fieldValue[CalendarFieldIndex::ERA] = hd.GetYear() <= 0 ? 0 : 1; - fieldValue[CalendarFieldIndex::MONTH] = hd.GetMonth() - 1; + fieldValue[CalendarFieldIndex::MONTH] = sal::static_int_cast( hd.GetMonth() - 1 ); fieldValue[CalendarFieldIndex::DAY_OF_MONTH] = (sal_Int16)hd.GetDay(); fieldValue[CalendarFieldIndex::YEAR] = (sal_Int16)(hd.GetYear() <= 0 ? 1 - hd.GetYear() : hd.GetYear()); } @@ -287,7 +288,7 @@ void SAL_CALL Calendar_jewish::mapToGregorian() throw(RuntimeException) GregorianDate gd(Temp); fieldSetValue[CalendarFieldIndex::ERA] = gd.GetYear() <= 0 ? 0 : 1; - fieldSetValue[CalendarFieldIndex::MONTH] = gd.GetMonth() - 1; + fieldSetValue[CalendarFieldIndex::MONTH] = sal::static_int_cast( gd.GetMonth() - 1 ); fieldSetValue[CalendarFieldIndex::DAY_OF_MONTH] = (sal_Int16)gd.GetDay(); fieldSetValue[CalendarFieldIndex::YEAR] = (sal_Int16)(gd.GetYear() <= 0 ? 1 - gd.GetYear() : gd.GetYear()); fieldSet |= FIELDS; -- cgit