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

Unified Diff: third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.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/core/editing/iterators/TextIteratorTextState.cpp
diff --git a/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp b/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp
index 9fdefafd4fa3afb4a708f2e9bf7cb3279b820e8d..d330d2305a8f4ec766f51cabce07b23e9a37ad12 100644
--- a/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp
+++ b/third_party/WebKit/Source/core/editing/iterators/TextIteratorTextState.cpp
@@ -63,7 +63,7 @@ String TextIteratorTextState::substring(unsigned position,
SECURITY_DCHECK(position <= static_cast<unsigned>(this->length()));
SECURITY_DCHECK(position + length <= static_cast<unsigned>(this->length()));
if (!length)
- return emptyString();
+ return emptyString;
if (m_singleCharacterBuffer) {
DCHECK_EQ(position, 0u);
DCHECK_EQ(length, 1u);

Powered by Google App Engine
This is Rietveld 408576698