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

Unified Diff: third_party/WebKit/Source/core/style/QuotesData.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/style/QuotesData.cpp
diff --git a/third_party/WebKit/Source/core/style/QuotesData.cpp b/third_party/WebKit/Source/core/style/QuotesData.cpp
index 5b088c6db553fcacf9d29ef962ccd3863a9dd46a..0eafa382c163ffbe1b7b67aa0dff2cea68e2ada7 100644
--- a/third_party/WebKit/Source/core/style/QuotesData.cpp
+++ b/third_party/WebKit/Source/core/style/QuotesData.cpp
@@ -40,7 +40,7 @@ void QuotesData::addPair(std::pair<String, String> quotePair) {
const String QuotesData::getOpenQuote(int index) const {
ASSERT(index >= 0);
if (!m_quotePairs.size() || index < 0)
- return emptyString();
+ return emptyString;
if ((size_t)index >= m_quotePairs.size())
return m_quotePairs.back().first;
return m_quotePairs.at(index).first;
@@ -49,7 +49,7 @@ const String QuotesData::getOpenQuote(int index) const {
const String QuotesData::getCloseQuote(int index) const {
ASSERT(index >= -1);
if (!m_quotePairs.size() || index < 0)
- return emptyString();
+ return emptyString;
if ((size_t)index >= m_quotePairs.size())
return m_quotePairs.back().second;
return m_quotePairs.at(index).second;

Powered by Google App Engine
This is Rietveld 408576698