summaryrefslogtreecommitdiff
path: root/fpdfsdk/src
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-19 12:11:49 -0700
committerLei Zhang <thestig@chromium.org>2015-10-19 12:11:49 -0700
commitb0748bb1b207559deaec7a5f49c00c492a5f6082 (patch)
treeb4eb849c5d68388f74ca0e1006895e415f004a43 /fpdfsdk/src
parent29cd8b9631408c0360c744e23a2733d24c9224ec (diff)
downloadpdfium-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 'fpdfsdk/src')
-rw-r--r--fpdfsdk/src/fpdfview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/src/fpdfview.cpp b/fpdfsdk/src/fpdfview.cpp
index 6254eb2b67..8e794e1fd6 100644
--- a/fpdfsdk/src/fpdfview.cpp
+++ b/fpdfsdk/src/fpdfview.cpp
@@ -175,7 +175,7 @@ void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable) {
FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy) {
switch (policy) {
case FPDF_POLICY_MACHINETIME_ACCESS:
- return (foxit_sandbox_policy & 0x01) ? TRUE : FALSE;
+ return !!(foxit_sandbox_policy & 0x01);
default:
return FALSE;
}