ICU-5032 Move deprecated virtual inline code into the rest of the Hebrew calendar.

X-SVN-Rev: 19397
This commit is contained in:
George Rhoten 2006-03-22 00:38:45 +00:00
parent 01e946968d
commit e8641af8d2
2 changed files with 19 additions and 8 deletions

View file

@ -1,9 +1,10 @@
/*
* Copyright (C) 2003-2006, International Business Machines Corporation
* and others. All Rights Reserved.
******************************************************************************
******************************************************************************
* Copyright (C) 2003-2006, International Business Machines Corporation
* and others. All Rights Reserved.
******************************************************************************
*
* File HEBRWCAL.H
* File HEBRWCAL.CPP
*
* Modification History:
*
@ -263,6 +264,14 @@ void HebrewCalendar::add(UCalendarDateFields field, int32_t amount, UErrorCode&
}
}
/**
* @deprecated ICU 2.6 use UCalendarDateFields instead of EDateFields
*/
void HebrewCalendar::add(EDateFields field, int32_t amount, UErrorCode& status)
{
add((UCalendarDateFields)field, amount, status);
}
/**
* Rolls (up/down) a specified amount time on the given field. For
* example, to roll the current date up by three days, you can call

View file

@ -1,6 +1,8 @@
/*
* Copyright (C) 2003-2004, International Business Machines Corporation and others. All Rights Reserved.
********************************************************************************
******************************************************************************
* Copyright (C) 2003-2006, International Business Machines Corporation
* and others. All Rights Reserved.
******************************************************************************
*
* File HEBRWCAL.H
*
@ -9,7 +11,7 @@
* Date Name Description
* 05/13/2003 srl copied from gregocal.h
* 11/26/2003 srl copied from buddhcal.h
********************************************************************************
******************************************************************************
*/
#ifndef HEBRWCAL_H
@ -242,7 +244,7 @@ public:
/**
* @deprecated ICU 2.6 use UCalendarDateFields instead of EDateFields
*/
inline virtual void add(EDateFields field, int32_t amount, UErrorCode& status) { add((UCalendarDateFields)field, amount, status); }
virtual void add(EDateFields field, int32_t amount, UErrorCode& status);
/**