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

Unified Diff: third_party/WebKit/Source/core/dom/CharacterData.h

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/core/dom/CharacterData.h
diff --git a/third_party/WebKit/Source/core/dom/CharacterData.h b/third_party/WebKit/Source/core/dom/CharacterData.h
index 7f93e29b398778e36e22d491445223bd9e518a93..ff68ecac5312336191cd6f463ab2b069746dbefb 100644
--- a/third_party/WebKit/Source/core/dom/CharacterData.h
+++ b/third_party/WebKit/Source/core/dom/CharacterData.h
@@ -58,7 +58,7 @@ class CORE_EXPORT CharacterData : public Node {
protected:
CharacterData(TreeScope& treeScope, const String& text, ConstructionType type)
- : Node(&treeScope, type), m_data(!text.isNull() ? text : emptyString()) {
+ : Node(&treeScope, type), m_data(!text.isNull() ? text : emptyString) {
DCHECK(type == CreateOther || type == CreateText ||
type == CreateEditingText);
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/AttrTest.cpp ('k') | third_party/WebKit/Source/core/dom/CharacterData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698