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 /core/fpdfdoc/doc_utils.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 'core/fpdfdoc/doc_utils.cpp')
-rw-r--r-- | core/fpdfdoc/doc_utils.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/core/fpdfdoc/doc_utils.cpp b/core/fpdfdoc/doc_utils.cpp index 408f0065e2..6c61c3d75e 100644 --- a/core/fpdfdoc/doc_utils.cpp +++ b/core/fpdfdoc/doc_utils.cpp @@ -716,11 +716,9 @@ void CPDF_IconFit::GetIconPosition(FX_FLOAT& fLeft, FX_FLOAT& fBottom) { } } } -FX_BOOL CPDF_IconFit::GetFittingBounds() { - if (!m_pDict) { - return FALSE; - } - return m_pDict->GetBooleanBy("FB"); + +bool CPDF_IconFit::GetFittingBounds() { + return m_pDict ? m_pDict->GetBooleanBy("FB") : false; } std::vector<bool> SaveCheckedFieldStatus(CPDF_FormField* pField) { |