From 830df7761ee5db9d5a00693b39927ece40e39d7c Mon Sep 17 00:00:00 2001 From: Michael Ow Date: Tue, 3 Dec 2013 23:27:49 +0000 Subject: [PATCH] ICU-8464 Use UNICODE_STRING_SIMPLE instead of UnicodeString constructor X-SVN-Rev: 34707 --- icu4c/source/i18n/reldatefmt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/icu4c/source/i18n/reldatefmt.cpp b/icu4c/source/i18n/reldatefmt.cpp index abdc5795e01..f8b01cd08fc 100644 --- a/icu4c/source/i18n/reldatefmt.cpp +++ b/icu4c/source/i18n/reldatefmt.cpp @@ -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); } -- 2.40.0