Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: third_party/WebKit/Source/platform/text/LocaleICU.cpp

Issue 2668903003: Replace WTF::emptyString{16Bit}() with a static global (Closed)
Patch Set: Replace WTF::emptyString{16Bit}() with a static global Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/text/LocaleICU.cpp
diff --git a/third_party/WebKit/Source/platform/text/LocaleICU.cpp b/third_party/WebKit/Source/platform/text/LocaleICU.cpp
index 641e5527163128bee197e13debd0e1367d701838..5a471cf46d308c02c27559c383208b139410c824 100644
--- a/third_party/WebKit/Source/platform/text/LocaleICU.cpp
+++ b/third_party/WebKit/Source/platform/text/LocaleICU.cpp
@@ -166,17 +166,17 @@ UDateFormat* LocaleICU::openDateFormatForStandAloneMonthLabels(
static String getDateFormatPattern(const UDateFormat* dateFormat) {
if (!dateFormat)
- return emptyString();
+ return emptyString;
UErrorCode status = U_ZERO_ERROR;
int32_t length = udat_toPattern(dateFormat, TRUE, 0, 0, &status);
if (status != U_BUFFER_OVERFLOW_ERROR || !length)
- return emptyString();
+ return emptyString;
StringBuffer<UChar> buffer(length);
status = U_ZERO_ERROR;
udat_toPattern(dateFormat, TRUE, buffer.characters(), length, &status);
if (U_FAILURE(status))
- return emptyString();
+ return emptyString;
return String::adopt(buffer);
}
« no previous file with comments | « third_party/WebKit/Source/platform/network/HTTPParsersTest.cpp ('k') | third_party/WebKit/Source/platform/text/LocaleWin.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698