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

Unified Diff: third_party/WebKit/Source/core/dom/DOMURLUtilsReadOnly.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
« no previous file with comments | « third_party/WebKit/Source/core/dom/CharacterData.cpp ('k') | third_party/WebKit/Source/core/dom/Document.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/DOMURLUtilsReadOnly.cpp
diff --git a/third_party/WebKit/Source/core/dom/DOMURLUtilsReadOnly.cpp b/third_party/WebKit/Source/core/dom/DOMURLUtilsReadOnly.cpp
index a2cbc2a3b1cf530ebbd0be96eb5a0740d4bf0be7..0c6fe5a7de125d6457aeb7b24e6e12b8741db8fb 100644
--- a/third_party/WebKit/Source/core/dom/DOMURLUtilsReadOnly.cpp
+++ b/third_party/WebKit/Source/core/dom/DOMURLUtilsReadOnly.cpp
@@ -56,18 +56,18 @@ String DOMURLUtilsReadOnly::port(const KURL& kurl) {
if (kurl.hasPort())
return String::number(kurl.port());
- return emptyString();
+ return emptyString;
}
String DOMURLUtilsReadOnly::search(const KURL& kurl) {
String query = kurl.query();
- return query.isEmpty() ? emptyString() : "?" + query;
+ return query.isEmpty() ? emptyString : "?" + query;
}
String DOMURLUtilsReadOnly::hash(const KURL& kurl) {
String fragmentIdentifier = kurl.fragmentIdentifier();
if (fragmentIdentifier.isEmpty())
- return emptyString();
+ return emptyString;
return AtomicString(String("#" + fragmentIdentifier));
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/CharacterData.cpp ('k') | third_party/WebKit/Source/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698