| Index: third_party/icu/source/i18n/dtitvfmt.cpp
|
| ===================================================================
|
| --- third_party/icu/source/i18n/dtitvfmt.cpp (revision 74230)
|
| +++ third_party/icu/source/i18n/dtitvfmt.cpp (working copy)
|
| @@ -8,7 +8,6 @@
|
| *******************************************************************************
|
| */
|
|
|
| -#include <typeinfo> // for 'typeid' to work
|
|
|
| #include "unicode/dtitvfmt.h"
|
|
|
| @@ -190,7 +189,7 @@
|
|
|
| UBool
|
| DateIntervalFormat::operator==(const Format& other) const {
|
| - if (typeid(*this) == typeid(other)) {
|
| + if (CR_TYPEID(*this) == CR_TYPEID(other)) {
|
| const DateIntervalFormat* fmt = (DateIntervalFormat*)&other;
|
| #ifdef DTITVFMT_DEBUG
|
| UBool equal;
|
| @@ -243,7 +242,7 @@
|
|
|
| if ( obj.getType() == Formattable::kObject ) {
|
| const UObject* formatObj = obj.getObject();
|
| - const DateInterval* interval = dynamic_cast<const DateInterval*>(formatObj);
|
| + const DateInterval* interval = CR_DYNAMIC_CAST<const DateInterval*>(formatObj);
|
| if (interval != NULL){
|
| return format(interval, appendTo, fieldPosition, status);
|
| }
|
|
|