ICU-2755 Fix for Solaris
X-SVN-Rev: 11816
This commit is contained in:
parent
3df0b027d6
commit
97a32dd6b1
@ -322,11 +322,12 @@ void CollationServiceTest::TestRegisterFactory(void)
|
||||
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)) {
|
||||
//
|
||||
if (locName == *loc) {
|
||||
const UnicodeString* locStr;
|
||||
for (locStr = localeEnum->snext(status);
|
||||
!found && locStr != NULL;
|
||||
locStr = localeEnum->snext(status))
|
||||
{
|
||||
if (locName == *locStr) {
|
||||
found = TRUE;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user