diff options
author | tsepez <tsepez@chromium.org> | 2016-10-26 18:58:39 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-26 18:58:39 -0700 |
commit | 9f7f7f8773410020fbea2be87917591cddd86aab (patch) | |
tree | 875155af9bef6dea6b450747320d711863902a9e /xfa/fwl/core/ifwl_picturebox.cpp | |
parent | f39074c0ae47a84c496782f8b75bcce1e1cfdf59 (diff) | |
download | pdfium-9f7f7f8773410020fbea2be87917591cddd86aab.tar.xz |
Fix some FX_BOOL / int noise in xfa
Review-Url: https://codereview.chromium.org/2453983002
Diffstat (limited to 'xfa/fwl/core/ifwl_picturebox.cpp')
-rw-r--r-- | xfa/fwl/core/ifwl_picturebox.cpp | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/xfa/fwl/core/ifwl_picturebox.cpp b/xfa/fwl/core/ifwl_picturebox.cpp index 3539e08b0b..9e0e0b8623 100644 --- a/xfa/fwl/core/ifwl_picturebox.cpp +++ b/xfa/fwl/core/ifwl_picturebox.cpp @@ -114,22 +114,19 @@ void IFWL_PictureBox::DrawBkground(CFX_Graphics* pGraphics, &matrix); } -FX_BOOL IFWL_PictureBox::VStyle(FX_BOOL dwStyle) { +bool IFWL_PictureBox::VStyle(uint32_t dwStyle) { switch (dwStyle & FWL_STYLEEXT_PTB_VAlignMask) { - case FWL_STYLEEXT_PTB_Top: { - return m_bTop = TRUE; - break; - } - case FWL_STYLEEXT_PTB_Vcenter: { - return m_bVCenter = TRUE; - break; - } - case FWL_STYLEEXT_PTB_Bottom: { - return m_bButton = TRUE; - break; - } + case FWL_STYLEEXT_PTB_Top: + m_bTop = TRUE; + return true; + case FWL_STYLEEXT_PTB_Vcenter: + m_bVCenter = TRUE; + return true; + case FWL_STYLEEXT_PTB_Bottom: + m_bButton = TRUE; + return true; } - return FALSE; + return false; } CFWL_PictureBoxImpDelegate::CFWL_PictureBoxImpDelegate(IFWL_PictureBox* pOwner) |