ICU-3718 Do faster string copying, and hopefully avoid any uninitialized reads
X-SVN-Rev: 15517
This commit is contained in:
parent
f5b6408857
commit
9925b69c5c
@ -174,7 +174,8 @@ static UBool getOlsonMeta() {
|
||||
|
||||
static int32_t findInStringArray(UResourceBundle* array, const UnicodeString& id, UErrorCode &status)
|
||||
{
|
||||
UnicodeString copy = id;
|
||||
UnicodeString copy;
|
||||
copy.fastCopyFrom(id);
|
||||
const UChar* buf = copy.getTerminatedBuffer();
|
||||
const UChar* u = NULL;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user