diff options
author | thestig <thestig@chromium.org> | 2016-05-23 17:54:02 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-23 17:54:02 -0700 |
commit | ded3634145b214b11212a7c53faa8ba15a1789ca (patch) | |
tree | fe715734e07dc73b3b63d9223d59e7a2799b557e /fpdfsdk/fpdfview.cpp | |
parent | a2d699f1462050833f959ebcf24853c2a6a10f72 (diff) | |
download | pdfium-ded3634145b214b11212a7c53faa8ba15a1789ca.tar.xz |
Change CPDF_Boolean to use bool instead of FX_BOOL.
Review-Url: https://codereview.chromium.org/1999313002
Diffstat (limited to 'fpdfsdk/fpdfview.cpp')
-rw-r--r-- | fpdfsdk/fpdfview.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/fpdfsdk/fpdfview.cpp b/fpdfsdk/fpdfview.cpp index e7b3a96b0b..cdcaba4318 100644 --- a/fpdfsdk/fpdfview.cpp +++ b/fpdfsdk/fpdfview.cpp @@ -364,13 +364,8 @@ DLLEXPORT FPDF_BOOL STDCALL FPDF_HasXFAField(FPDF_DOCUMENT document, if (!pXFA) return FALSE; - FX_BOOL bDynamicXFA = pRoot->GetBooleanBy("NeedsRendering", FALSE); - - if (bDynamicXFA) - *docType = DOCTYPE_DYNAMIC_XFA; - else - *docType = DOCTYPE_STATIC_XFA; - + bool bDynamicXFA = pRoot->GetBooleanBy("NeedsRendering", false); + *docType = bDynamicXFA ? DOCTYPE_DYNAMIC_XFA : DOCTYPE_STATIC_XFA; return TRUE; } |