ICU-408 resolved ambiguity in resource bundle construction

X-SVN-Rev: 1478
This commit is contained in:
Vladimir Weinstein 2000-05-24 22:03:54 +00:00
parent 1799fb94fe
commit a23c3012f6

View File

@ -759,7 +759,7 @@ RuleBasedCollator::constructFromFile(const char* fileName,
} }
const char * const char *
RuleBasedCollator::constructFromBundle(const char* name, RuleBasedCollator::constructFromBundle(const Locale & name,
UErrorCode& status) UErrorCode& status)
{ {
// This method tries to locate binary collation data which has been // This method tries to locate binary collation data which has been
@ -873,7 +873,7 @@ RuleBasedCollator::RuleBasedCollator( const Locale& desiredLocale,
// however, in a very unprobable situation that no resource bundle // however, in a very unprobable situation that no resource bundle
// data exists, step 5 is repeated with hardcoded default rules. // data exists, step 5 is repeated with hardcoded default rules.
const char *locName = constructFromBundle(desiredLocale.getName(), status); /*!*/ const char *locName = constructFromBundle(desiredLocale, status); /*!*/
data->desiredLocale = desiredLocale; data->desiredLocale = desiredLocale;
if (U_SUCCESS(status)) { if (U_SUCCESS(status)) {