ICU-2755 Fix for HP-UX

X-SVN-Rev: 11806
This commit is contained in:
George Rhoten 2003-05-05 23:22:46 +00:00
parent 91ea8b908e
commit 725e9155d0

View file

@ -84,11 +84,12 @@ void CollationServiceTest::TestRegister()
UnicodeString locName = fu_FU.getName();
StringEnumeration* localeEnum = Collator::getAvailableLocales();
UBool found = FALSE;
for (const UnicodeString* loc = localeEnum->snext(status);
!found && loc != NULL;
loc = localeEnum->snext(status)) {
const UnicodeString* locStr;
for (locStr = localeEnum->snext(status);
!found && locStr != NULL;
locStr = localeEnum->snext(status)) {
//
if (locName == *loc) {
if (locName == *locStr) {
found = TRUE;
}
}