summaryrefslogtreecommitdiff
path: root/fpdfsdk
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2015-10-19 12:00:05 -0700
committerLei Zhang <thestig@chromium.org>2015-10-19 12:00:05 -0700
commitaff4635dad81bc319266d9d84b81552580cd2b65 (patch)
tree0a071983cbcd7a50db4c4865099a8f6e93192123 /fpdfsdk
parent6101a5f98b27888f1736ae74982ed4d409d83be0 (diff)
downloadpdfium-aff4635dad81bc319266d9d84b81552580cd2b65.tar.xz
Sanity check the values of TRUE and FALSE.
Get rid of cond ? TRUE : FALSE. R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1405723003 .
Diffstat (limited to 'fpdfsdk')
-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 b2c5618a52..d03db35035 100644
--- a/fpdfsdk/src/fpdfview.cpp
+++ b/fpdfsdk/src/fpdfview.cpp
@@ -64,7 +64,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;
}