diff options
author | wangxianzhu@chromium.org <wangxianzhu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-14 18:39:53 +0000 |
---|---|---|
committer | wangxianzhu@chromium.org <wangxianzhu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-14 18:39:53 +0000 |
commit | c02cb8017a6b8ba62a88875e2034cf85c0d3c834 (patch) | |
tree | ff96ee0d2b577bb7e04c70a7f7d636d8eea37f00 /base/i18n | |
parent | a396b7b69af2d934760838cad25e6579d7d62d77 (diff) | |
download | chromium_src-c02cb8017a6b8ba62a88875e2034cf85c0d3c834.zip chromium_src-c02cb8017a6b8ba62a88875e2034cf85c0d3c834.tar.gz chromium_src-c02cb8017a6b8ba62a88875e2034cf85c0d3c834.tar.bz2 |
Change DCHECK_IS_ON() to DCHECK_IS_ON
DCHECK_IS_ON has been a constant since r255987, and can be used in both
if() and #if. It no more needs to be in function form.
Converted 'if (DCHECK_IS_ON)' to '#if DCHECK_IS_ON' if proper.
BUG=350462
TEST=build
TBR=darin
Review URL: https://codereview.chromium.org/195973002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@257156 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/i18n')
-rw-r--r-- | base/i18n/build_utf8_validator_tables.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/base/i18n/build_utf8_validator_tables.cc b/base/i18n/build_utf8_validator_tables.cc index 8ca0a7f..d37a751 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], |