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

Unified Diff: third_party/WebKit/Source/platform/text/SuffixTree.h

Issue 2811453002: Replace ASSERT, ASSERT_NOT_REACHED, and RELEASE_ASSERT in platform/text (Closed)
Patch Set: fix Created 3 years, 8 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/platform/text/SuffixTree.h
diff --git a/third_party/WebKit/Source/platform/text/SuffixTree.h b/third_party/WebKit/Source/platform/text/SuffixTree.h
index 2c1b3513b1c7a6602aebda4008b6f15fec43d934..04e09e8409373fdd66c1d704b1704238b8cf7762 100644
--- a/third_party/WebKit/Source/platform/text/SuffixTree.h
+++ b/third_party/WebKit/Source/platform/text/SuffixTree.h
@@ -104,7 +104,7 @@ class SuffixTree {
Node* current = &root_;
unsigned limit = std::min(base + depth_, text.length());
for (unsigned offset = 0; base + offset < limit; ++offset) {
- ASSERT(current != &leaf_);
+ DCHECK_NE(current, &leaf_);
Node*& child = current->at(Codebook::CodeWord(text[base + offset]));
if (!child)
child = base + offset + 1 == limit ? &leaf_ : new Node();

Powered by Google App Engine
This is Rietveld 408576698