diff options
author | Lei Zhang <thestig@chromium.org> | 2015-10-19 12:11:49 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-10-19 12:11:49 -0700 |
commit | b0748bb1b207559deaec7a5f49c00c492a5f6082 (patch) | |
tree | b4eb849c5d68388f74ca0e1006895e415f004a43 /core/src/fpdfdoc/doc_vt.cpp | |
parent | 29cd8b9631408c0360c744e23a2733d24c9224ec (diff) | |
download | pdfium-b0748bb1b207559deaec7a5f49c00c492a5f6082.tar.xz |
Merge to XFA: Sanity check the values of TRUE and FALSE.
Get rid of cond ? TRUE : FALSE.
TBR=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1405723003 .
(cherry picked from commit aff4635dad81bc319266d9d84b81552580cd2b65)
Review URL: https://codereview.chromium.org/1412793003 .
Diffstat (limited to 'core/src/fpdfdoc/doc_vt.cpp')
-rw-r--r-- | core/src/fpdfdoc/doc_vt.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/fpdfdoc/doc_vt.cpp b/core/src/fpdfdoc/doc_vt.cpp index 396a7d6b71..fe5680ff9b 100644 --- a/core/src/fpdfdoc/doc_vt.cpp +++ b/core/src/fpdfdoc/doc_vt.cpp @@ -430,7 +430,7 @@ static FX_BOOL IsLatin(FX_WORD word) { return FALSE; } static FX_BOOL IsDigit(FX_DWORD word) { - return (word >= 0x0030 && word <= 0x0039) ? TRUE : FALSE; + return word >= 0x0030 && word <= 0x0039; } static FX_BOOL IsCJK(FX_DWORD word) { if ((word >= 0x1100 && word <= 0x11FF) || @@ -542,7 +542,7 @@ static FX_BOOL IsPrefixSymbol(FX_WORD word) { return FALSE; } static FX_BOOL IsSpace(FX_WORD word) { - return (word == 0x0020 || word == 0x3000) ? TRUE : FALSE; + return word == 0x0020 || word == 0x3000; } static FX_BOOL NeedDivision(FX_WORD prevWord, FX_WORD curWord) { if ((IsLatin(prevWord) || IsDigit(prevWord)) && |