diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-07-23 13:36:00 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-07-23 13:36:00 -0700 |
commit | f1e7c461dfabbff6b65a072f24f6711b34159361 (patch) | |
tree | 3b0bb772a59669f06b86824a444fd06642592d4b /fpdfsdk/src/pdfwindow/PWL_ListCtrl.cpp | |
parent | 320b2313d19869333ed453af546e61a9fc2b81c9 (diff) | |
download | pdfium-f1e7c461dfabbff6b65a072f24f6711b34159361.tar.xz |
Revert "FX_BOOL considered harmful, part 2."
This reverts commit 320b2313d19869333ed453af546e61a9fc2b81c9.
Reason for revert: build failure.
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/1255693002 .
Diffstat (limited to 'fpdfsdk/src/pdfwindow/PWL_ListCtrl.cpp')
-rw-r--r-- | fpdfsdk/src/pdfwindow/PWL_ListCtrl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fpdfsdk/src/pdfwindow/PWL_ListCtrl.cpp b/fpdfsdk/src/pdfwindow/PWL_ListCtrl.cpp index d2deacb4d2..3077e6293f 100644 --- a/fpdfsdk/src/pdfwindow/PWL_ListCtrl.cpp +++ b/fpdfsdk/src/pdfwindow/PWL_ListCtrl.cpp @@ -52,7 +52,7 @@ CPDF_Rect CPWL_ListCtrl::GetScrollArea() const void CPWL_ListCtrl::ResetFace() { - ResetAll(false, 0); + ResetAll(FALSE, 0); } void CPWL_ListCtrl::ResetContent(int32_t nStart) @@ -60,7 +60,7 @@ void CPWL_ListCtrl::ResetContent(int32_t nStart) if (nStart < 0) nStart = 0; if (nStart >= 0 && nStart < m_aChildren.GetSize()) - ResetAll(true, nStart); + ResetAll(TRUE, nStart); } FX_FLOAT CPWL_ListCtrl::GetContentsHeight(FX_FLOAT fLimitWidth) @@ -91,7 +91,7 @@ FX_FLOAT CPWL_ListCtrl::GetContentsHeight(FX_FLOAT fLimitWidth) return fRet; } -void CPWL_ListCtrl::ResetAll(bool bMove, int32_t nStart) +void CPWL_ListCtrl::ResetAll(FX_BOOL bMove, int32_t nStart) { CPDF_Rect rcClient = GetClientRect(); @@ -119,7 +119,7 @@ void CPWL_ListCtrl::ResetAll(bool bMove, int32_t nStart) if (bMove) { FX_FLOAT fItemHeight = pChild->GetItemHeight(fWidth - fLeft - fRight); - pChild->Move(CPDF_Rect(fLeft, fy-fItemHeight, fWidth - fRight, fy), true, false); + pChild->Move(CPDF_Rect(fLeft, fy-fItemHeight, fWidth - fRight, fy), TRUE, FALSE); fy -= fItemHeight; fy -= m_fItemSpace; } |