mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-21 12:40:02 +00:00
ICU-8464 Use UNICODE_STRING_SIMPLE instead of UnicodeString constructor
X-SVN-Rev: 34707
This commit is contained in:
parent
132f872930
commit
830df7761e
1 changed files with 2 additions and 2 deletions
|
@ -525,7 +525,7 @@ static void getDateTimePattern(
|
|||
if (size < 9) {
|
||||
// Oops, size is to small to access the index that we want, fallback
|
||||
// to a hard-coded value.
|
||||
result = UnicodeString("{1} {0}");
|
||||
result = UNICODE_STRING_SIMPLE("{1} {0}");
|
||||
return;
|
||||
}
|
||||
getStringByIndex(topLevel.getAlias(), 8, result, status);
|
||||
|
@ -667,7 +667,7 @@ UnicodeString& RelativeDateTimeFormatter::format(
|
|||
}
|
||||
UnicodeString result(*pattern);
|
||||
UnicodeString formattedNumber;
|
||||
result.findAndReplace(UnicodeString("{0}"), ptr->numberFormat->format(quantity, formattedNumber));
|
||||
result.findAndReplace(UNICODE_STRING_SIMPLE("{0}"), ptr->numberFormat->format(quantity, formattedNumber));
|
||||
return appendTo.append(result);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue