ICU-21052 Fix two compilations with UCONFIG_NO_CONVERSION option in t…

See #1127
This commit is contained in:
Craig Cornelius 2020-04-22 21:38:55 +00:00
parent ef91cc3673
commit 5944e1856c
2 changed files with 3 additions and 1 deletions

View file

@ -29,7 +29,7 @@ static const UnicodeString& _fieldString(UDebugEnumType type, int32_t field, Un
if(str == NULL) {
return fillin.remove();
} else {
return fillin = UnicodeString(str, ""); // optimize?
return fillin = UnicodeString(str, -1, US_INV);
}
}

View file

@ -441,6 +441,7 @@ ures_enumDependencies(const char *itemName, const UDataInfo *pInfo,
// get dependencies from conversion tables --------------------------------- ***
#if !UCONFIG_NO_CONVERSION
/* code adapted from ucnv_swap() */
static void
ucnv_enumDependencies(const UDataSwapper *ds,
@ -631,5 +632,6 @@ Package::enumDependencies(Item *pItem, void *context, CheckDependency check) {
}
}
}
#endif /* UCONFIG_NO_CONVERSION */
U_NAMESPACE_END