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

Issue 1405723003: Sanity check the values of TRUE and FALSE. (Closed)

Created:
5 years, 2 months ago by Lei Zhang
Modified:
5 years, 2 months ago
Reviewers:
Tom Sepez
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Sanity check the values of TRUE and FALSE. Get rid of cond ? TRUE : FALSE. R=tsepez@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/aff4635dad81bc319266d9d84b81552580cd2b65

Patch Set 1 #

Total comments: 14

Patch Set 2 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -12 lines) Patch
M core/include/fxcrt/fx_system.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M core/include/fxge/fx_dib.h View 1 1 chunk +5 lines, -2 lines 0 comments Download
M core/src/fpdfapi/fpdf_render/fpdf_render.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M core/src/fpdfdoc/doc_vt.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M core/src/fxcodec/jbig2/JBig2_Context.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M core/src/fxge/dib/fx_dib_composite.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M core/src/fxge/dib/fx_dib_convert.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M core/src/fxge/win32/fx_win32_dwrite.cpp View 1 chunk +1 line, -1 line 0 comments Download
M fpdfsdk/src/fpdfview.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (1 generated)
Lei Zhang
FX_BOOL isn't dead yet, and we may need TRUE/FALSE for C code.
5 years, 2 months ago (2015-10-15 00:40:53 UTC) #2
Tom Sepez
https://codereview.chromium.org/1405723003/diff/1/core/include/fxcrt/fx_system.h File core/include/fxcrt/fx_system.h (right): https://codereview.chromium.org/1405723003/diff/1/core/include/fxcrt/fx_system.h#newcode99 core/include/fxcrt/fx_system.h:99: static_assert(TRUE == 1, "true_needs_to_be_one"); If it's not C++, we ...
5 years, 2 months ago (2015-10-15 17:08:31 UTC) #3
Lei Zhang
https://codereview.chromium.org/1405723003/diff/1/core/include/fxcrt/fx_system.h File core/include/fxcrt/fx_system.h (right): https://codereview.chromium.org/1405723003/diff/1/core/include/fxcrt/fx_system.h#newcode99 core/include/fxcrt/fx_system.h:99: static_assert(TRUE == 1, "true_needs_to_be_one"); On 2015/10/15 17:08:31, Tom Sepez ...
5 years, 2 months ago (2015-10-19 08:56:18 UTC) #4
Tom Sepez
lgtm
5 years, 2 months ago (2015-10-19 16:28:17 UTC) #5
Lei Zhang
5 years, 2 months ago (2015-10-19 19:00:08 UTC) #6
Message was sent while issue was closed.
Committed patchset #2 (id:20001) manually as
aff4635dad81bc319266d9d84b81552580cd2b65 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698