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

Unified Diff: third_party/WebKit/Source/core/editing/iterators/TextIterator.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/TextIterator.cpp
diff --git a/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp b/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp
index 5fca9b6c2266648582739cca3bcaf2c44d248963..3b826f4d6726e0e66f6882d1eab84d643858d1dd 100644
--- a/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp
+++ b/third_party/WebKit/Source/core/editing/iterators/TextIterator.cpp
@@ -1412,7 +1412,7 @@ template <typename Strategy>
static String createPlainText(const EphemeralRangeTemplate<Strategy>& range,
const TextIteratorBehavior& behavior) {
if (range.isNull())
- return emptyString();
+ return emptyString;
DocumentLifecycle::DisallowTransitionScope disallowTransition(
range.startPosition().document()->lifecycle());
@@ -1421,7 +1421,7 @@ static String createPlainText(const EphemeralRangeTemplate<Strategy>& range,
behavior);
if (it.atEnd())
- return emptyString();
+ return emptyString;
// The initial buffer size can be critical for performance:
// https://bugs.webkit.org/show_bug.cgi?id=81192
@@ -1434,7 +1434,7 @@ static String createPlainText(const EphemeralRangeTemplate<Strategy>& range,
it.text().appendTextToStringBuilder(builder);
if (builder.isEmpty())
- return emptyString();
+ return emptyString;
return builder.toString();
}

Powered by Google App Engine
This is Rietveld 408576698