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

Unified Diff: third_party/WebKit/Source/core/style/QuotesData.cpp

Issue 2751653003: Replace ASSERT and ASSERT_NOT_REACHED in core/style/ (Closed)
Patch Set: Replace ASSERT and ASSERT_NOT_REACHED in core/style/ Created 3 years, 9 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 0eafa382c163ffbe1b7b67aa0dff2cea68e2ada7..2e502aa09ef32e8cc1f911277599e96a1dd43068 100644
--- a/third_party/WebKit/Source/core/style/QuotesData.cpp
+++ b/third_party/WebKit/Source/core/style/QuotesData.cpp
@@ -38,7 +38,7 @@ void QuotesData::addPair(std::pair<String, String> quotePair) {
}
const String QuotesData::getOpenQuote(int index) const {
- ASSERT(index >= 0);
+ DCHECK_GE(index, 0);
if (!m_quotePairs.size() || index < 0)
return emptyString;
if ((size_t)index >= m_quotePairs.size())
@@ -47,7 +47,7 @@ const String QuotesData::getOpenQuote(int index) const {
}
const String QuotesData::getCloseQuote(int index) const {
- ASSERT(index >= -1);
+ DCHECK_GE(index, -1);
if (!m_quotePairs.size() || index < 0)
return emptyString;
if ((size_t)index >= m_quotePairs.size())

Powered by Google App Engine
This is Rietveld 408576698