ICU-4707 Fix some compiler warnings.

X-SVN-Rev: 19399
This commit is contained in:
George Rhoten 2006-03-22 06:13:30 +00:00
parent a7b05e0c3d
commit ad096587e1

View File

@ -1339,12 +1339,6 @@ public:
current = 0;
}
virtual UBool operator==(const StringEnumeration& that)const{
return ((this == &that) ||
(getDynamicClassID() == that.getDynamicClassID() &&
StringEnumeration::operator==(that) &&
equals(that)));
}
private:
UBool equals(const StringEnumeration& other) const{
if (other.getDynamicClassID() != TimeZoneKeysEnumeration::getStaticClassID()) {
@ -1377,6 +1371,13 @@ private:
// if we reached here that means that the enumerations are equal
return TRUE;
}
public:
virtual UBool operator==(const StringEnumeration& that)const{
return ((this == &that) ||
(getDynamicClassID() == that.getDynamicClassID() &&
StringEnumeration::operator==(that) &&
equals(that)));
}
};
UOBJECT_DEFINE_RTTI_IMPLEMENTATION(TimeZoneKeysEnumeration)