diff options
Diffstat (limited to 'fpdfsdk/src/fpdfview.cpp')
-rw-r--r-- | fpdfsdk/src/fpdfview.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/fpdfsdk/src/fpdfview.cpp b/fpdfsdk/src/fpdfview.cpp index a5daa8f52e..fc16147cfa 100644 --- a/fpdfsdk/src/fpdfview.cpp +++ b/fpdfsdk/src/fpdfview.cpp @@ -166,16 +166,11 @@ void FSDK_SetSandBoxPolicy(FPDF_DWORD policy, FPDF_BOOL enable) { FPDF_BOOL FSDK_IsSandBoxPolicyEnabled(FPDF_DWORD policy) { switch (policy) { - case FPDF_POLICY_MACHINETIME_ACCESS: { - if (foxit_sandbox_policy & 0x01) - return TRUE; - else - return FALSE; - } break; + case FPDF_POLICY_MACHINETIME_ACCESS: + return (foxit_sandbox_policy & 0x01) ? TRUE : FALSE; default: - break; + return FALSE; } - return FALSE; } CCodec_ModuleMgr* g_pCodecModule = nullptr; |