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

Unified Diff: third_party/WebKit/Source/wtf/text/WTFString.h

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/WTFString.h
diff --git a/third_party/WebKit/Source/wtf/text/WTFString.h b/third_party/WebKit/Source/wtf/text/WTFString.h
index 6fe8763e5076193f44d79a270f1aa9c81d47fc66..048c62abf93989016b4e0679b0b0d5b7a199db0c 100644
--- a/third_party/WebKit/Source/wtf/text/WTFString.h
+++ b/third_party/WebKit/Source/wtf/text/WTFString.h
@@ -102,7 +102,7 @@ class WTF_EXPORT String {
template <typename CharType>
static String adopt(StringBuffer<CharType>& buffer) {
if (!buffer.length())
- return StringImpl::empty();
+ return StringImpl::empty;
return String(buffer.release());
}
@@ -494,7 +494,7 @@ inline void swap(String& a, String& b) {
template <size_t inlineCapacity>
String::String(const Vector<UChar, inlineCapacity>& vector)
: m_impl(vector.size() ? StringImpl::create(vector.data(), vector.size())
- : StringImpl::empty()) {}
+ : StringImpl::empty) {}
template <>
inline const LChar* String::getCharacters<LChar>() const {

Powered by Google App Engine
This is Rietveld 408576698