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

Unified Diff: base/i18n/build_utf8_validator_tables.cc

Issue 195973002: Change DCHECK_IS_ON() to DCHECK_IS_ON (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Keep a comment Created 6 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
« no previous file with comments | « no previous file | base/logging.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/i18n/build_utf8_validator_tables.cc
diff --git a/base/i18n/build_utf8_validator_tables.cc b/base/i18n/build_utf8_validator_tables.cc
index 8ca0a7ff54a26b564b48753ff688d341d9c5ddce..d37a75172a701ad6b6e9c92ad98cfd4f792f8195 100644
--- a/base/i18n/build_utf8_validator_tables.cc
+++ b/base/i18n/build_utf8_validator_tables.cc
@@ -248,12 +248,12 @@ void MoveAllCharsToSets(PairVector* pairs) {
for (int i = 0; i < 4; ++i) {
MoveRightMostCharToSet(pairs);
}
- if (DCHECK_IS_ON()) {
- for (PairVector::const_iterator it = pairs->begin(); it != pairs->end();
- ++it) {
- DCHECK(it->character.empty());
- }
+#if DCHECK_IS_ON
+ for (PairVector::const_iterator it = pairs->begin(); it != pairs->end();
+ ++it) {
+ DCHECK(it->character.empty());
}
+#endif
}
// Logs the generated string sets in regular-expression style, ie. [\x00-\x7f],
« no previous file with comments | « no previous file | base/logging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698