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

Unified Diff: third_party/WebKit/Source/wtf/text/AtomicStringTable.cpp

Issue 2655853003: Replace StringImpl::empty{16Bit}() with a static member (Closed)
Patch Set: 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/wtf/text/AtomicStringTable.cpp
diff --git a/third_party/WebKit/Source/wtf/text/AtomicStringTable.cpp b/third_party/WebKit/Source/wtf/text/AtomicStringTable.cpp
index c5126ab222debbe2415b7c04a54bb976bb7cd403..04ce0aca6e771a83b7503d0e39c20b5718828145 100644
--- a/third_party/WebKit/Source/wtf/text/AtomicStringTable.cpp
+++ b/third_party/WebKit/Source/wtf/text/AtomicStringTable.cpp
@@ -148,7 +148,7 @@ PassRefPtr<StringImpl> AtomicStringTable::add(const UChar* s, unsigned length) {
return nullptr;
if (!length)
- return StringImpl::empty();
+ return StringImpl::empty;
UCharBuffer buffer = {s, length};
return addToStringTable<UCharBuffer, UCharBufferTranslator>(buffer);
@@ -178,7 +178,7 @@ PassRefPtr<StringImpl> AtomicStringTable::add(const LChar* s, unsigned length) {
return nullptr;
if (!length)
- return StringImpl::empty();
+ return StringImpl::empty;
LCharBuffer buffer = {s, length};
return addToStringTable<LCharBuffer, LCharBufferTranslator>(buffer);
@@ -186,7 +186,7 @@ PassRefPtr<StringImpl> AtomicStringTable::add(const LChar* s, unsigned length) {
StringImpl* AtomicStringTable::add(StringImpl* string) {
if (!string->length())
- return StringImpl::empty();
+ return StringImpl::empty;
StringImpl* result = *m_table.add(string).storedValue;

Powered by Google App Engine
This is Rietveld 408576698