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

Unified Diff: third_party/WebKit/Source/core/html/parser/HTMLToken.h

Issue 2134543002: Use DCHECK_NE in HTMLToken.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/html/parser/HTMLToken.h
diff --git a/third_party/WebKit/Source/core/html/parser/HTMLToken.h b/third_party/WebKit/Source/core/html/parser/HTMLToken.h
index 3f0d7637b4582d308426a33e0a32ee115c88fb7c..62a2bd57608c49ab9f03ec0e62430461a93a3cef 100644
--- a/third_party/WebKit/Source/core/html/parser/HTMLToken.h
+++ b/third_party/WebKit/Source/core/html/parser/HTMLToken.h
@@ -94,7 +94,7 @@ public:
// Check Range instance that is actively being parsed.
inline void checkValidStart() const
{
- DCHECK(start != kInvalidOffset);
+ DCHECK_NE(start, kInvalidOffset);
DCHECK_GE(start, 0);
}
@@ -102,7 +102,7 @@ public:
inline void checkValid() const
{
checkValidStart();
- DCHECK(end != kInvalidOffset);
+ DCHECK_NE(end, kInvalidOffset);
DCHECK_GE(end, 0);
DCHECK_LE(start, end);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698