ICU-2966 fix problem with alias ids getting remapped

X-SVN-Rev: 12868
This commit is contained in:
Alan Liu 2003-08-19 01:03:22 +00:00
parent bcd6deeeac
commit fe3583ad46

View File

@ -163,8 +163,9 @@ OlsonTimeZone::OlsonTimeZone(const UResourceBundle* top,
ec = U_ILLEGAL_ARGUMENT_ERROR;
}
if (U_SUCCESS(ec)) {
// TODO remove nonconst casts below when ures_* API is fixed
setID(ures_getKey((UResourceBundle*) res)); // cast away const
// TODO -- clean up -- Doesn't work if res points to an alias
// // TODO remove nonconst casts below when ures_* API is fixed
// setID(ures_getKey((UResourceBundle*) res)); // cast away const
// Size 1 is an alias TO another zone (int)
// HOWEVER, the caller should dereference this and never pass it in to us
@ -537,4 +538,4 @@ U_NAMESPACE_END
#endif // !UCONFIG_NO_FORMATTING
//eof
//eof