| Index: third_party/icu/source/i18n/tmutfmt.cpp
|
| ===================================================================
|
| --- third_party/icu/source/i18n/tmutfmt.cpp (revision 74230)
|
| +++ third_party/icu/source/i18n/tmutfmt.cpp (working copy)
|
| @@ -5,7 +5,6 @@
|
| *******************************************************************************
|
| */
|
|
|
| -#include <typeinfo> // for 'typeid' to work
|
|
|
| #include "unicode/tmutfmt.h"
|
|
|
| @@ -173,7 +172,7 @@
|
|
|
| UBool
|
| TimeUnitFormat::operator==(const Format& other) const {
|
| - if (typeid(*this) == typeid(other)) {
|
| + if (CR_TYPEID(*this) == CR_TYPEID(other)) {
|
| TimeUnitFormat* fmt = (TimeUnitFormat*)&other;
|
| UBool ret = ( ((fNumberFormat && fmt->fNumberFormat && *fNumberFormat == *fmt->fNumberFormat)
|
| || fNumberFormat == fmt->fNumberFormat )
|
| @@ -202,7 +201,7 @@
|
| }
|
| if (obj.getType() == Formattable::kObject) {
|
| const UObject* formatObj = obj.getObject();
|
| - const TimeUnitAmount* amount = dynamic_cast<const TimeUnitAmount*>(formatObj);
|
| + const TimeUnitAmount* amount = CR_DYNAMIC_CAST<const TimeUnitAmount*>(formatObj);
|
| if (amount != NULL){
|
| Hashtable* countToPattern = fTimeUnitToCountToPatterns[amount->getTimeUnitField()];
|
| double number;
|
|
|