X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/48b980fed3435926e0b3a8d72ecb58be703a1c7a..729e4ab9bc6618bc3d8a898e575df7f4019e29ca:/icuSources/i18n/measure.cpp diff --git a/icuSources/i18n/measure.cpp b/icuSources/i18n/measure.cpp index 361c1fac..7b91677a 100644 --- a/icuSources/i18n/measure.cpp +++ b/icuSources/i18n/measure.cpp @@ -1,6 +1,6 @@ /* ********************************************************************** -* Copyright (c) 2004-2008, International Business Machines +* Copyright (c) 2004-2010, International Business Machines * Corporation and others. All Rights Reserved. ********************************************************************** * Author: Alan Liu @@ -8,6 +8,8 @@ * Since: ICU 3.0 ********************************************************************** */ +#include // for 'typeid' to work + #include "unicode/utypes.h" #if !UCONFIG_NO_FORMATTING @@ -48,7 +50,7 @@ Measure::~Measure() { UBool Measure::operator==(const UObject& other) const { const Measure* m = (const Measure*) &other; - return getDynamicClassID() == other.getDynamicClassID() && + return typeid(*this) == typeid(other) && number == m->getNumber() && (unit != NULL && *unit == m->getUnit()); }