| Index: third_party/icu/source/i18n/udat.cpp
|
| ===================================================================
|
| --- third_party/icu/source/i18n/udat.cpp (revision 74230)
|
| +++ third_party/icu/source/i18n/udat.cpp (working copy)
|
| @@ -33,7 +33,7 @@
|
| */
|
| static void verifyIsSimpleDateFormat(const UDateFormat* fmt, UErrorCode *status) {
|
| if(U_SUCCESS(*status) &&
|
| - dynamic_cast<const SimpleDateFormat*>(reinterpret_cast<const DateFormat*>(fmt))==NULL) {
|
| + CR_DYNAMIC_CAST<const SimpleDateFormat*>(reinterpret_cast<const DateFormat*>(fmt))==NULL) {
|
| *status = U_ILLEGAL_ARGUMENT_ERROR;
|
| }
|
| }
|
| @@ -338,14 +338,14 @@
|
| }
|
|
|
| const DateFormat *df=reinterpret_cast<const DateFormat *>(fmt);
|
| - const SimpleDateFormat *sdtfmt=dynamic_cast<const SimpleDateFormat *>(df);
|
| + const SimpleDateFormat *sdtfmt=CR_DYNAMIC_CAST<const SimpleDateFormat *>(df);
|
| const RelativeDateFormat *reldtfmt;
|
| if (sdtfmt!=NULL) {
|
| if(localized)
|
| sdtfmt->toLocalizedPattern(res, *status);
|
| else
|
| sdtfmt->toPattern(res);
|
| - } else if (!localized && (reldtfmt=dynamic_cast<const RelativeDateFormat *>(df))!=NULL) {
|
| + } else if (!localized && (reldtfmt=CR_DYNAMIC_CAST<const RelativeDateFormat *>(df))!=NULL) {
|
| reldtfmt->toPattern(res, *status);
|
| } else {
|
| *status = U_ILLEGAL_ARGUMENT_ERROR;
|
| @@ -900,7 +900,7 @@
|
| */
|
| static void verifyIsRelativeDateFormat(const UDateFormat* fmt, UErrorCode *status) {
|
| if(U_SUCCESS(*status) &&
|
| - dynamic_cast<const RelativeDateFormat*>(reinterpret_cast<const DateFormat*>(fmt))==NULL) {
|
| + CR_DYNAMIC_CAST<const RelativeDateFormat*>(reinterpret_cast<const DateFormat*>(fmt))==NULL) {
|
| *status = U_ILLEGAL_ARGUMENT_ERROR;
|
| }
|
| }
|
|
|