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_Signature.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_Signature.cpp')
-rw-r--r-- | fpdfsdk/src/pdfwindow/PWL_Signature.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/fpdfsdk/src/pdfwindow/PWL_Signature.cpp b/fpdfsdk/src/pdfwindow/PWL_Signature.cpp index 23be71a29d..76b2bd333a 100644 --- a/fpdfsdk/src/pdfwindow/PWL_Signature.cpp +++ b/fpdfsdk/src/pdfwindow/PWL_Signature.cpp @@ -70,9 +70,9 @@ CPWL_Signature::CPWL_Signature() : m_pText(NULL), m_pDescription(NULL), m_pImage(NULL), - m_bTextExist(true), - m_bImageExist(false), - m_bFlagExist(true) + m_bTextExist(TRUE), + m_bImageExist(FALSE), + m_bFlagExist(TRUE) { } @@ -80,21 +80,21 @@ CPWL_Signature::~CPWL_Signature() { } -void CPWL_Signature::SetTextFlag(bool bTextExist) +void CPWL_Signature::SetTextFlag(FX_BOOL bTextExist) { m_bTextExist = bTextExist; RePosChildWnd(); } -void CPWL_Signature::SetImageFlag(bool bImageExist) +void CPWL_Signature::SetImageFlag(FX_BOOL bImageExist) { m_bImageExist = bImageExist; RePosChildWnd(); } -void CPWL_Signature::SetFoxitFlag(bool bFlagExist) +void CPWL_Signature::SetFoxitFlag(FX_BOOL bFlagExist) { m_bFlagExist = bFlagExist; } @@ -135,7 +135,7 @@ void CPWL_Signature::RePosChildWnd() CPDF_Rect rcText = rcClient; CPDF_Rect rcDescription = rcClient; - bool bTextVisible = m_bTextExist && m_pText->GetText().GetLength() > 0; + FX_BOOL bTextVisible = m_bTextExist && m_pText->GetText().GetLength() > 0; if ((bTextVisible || m_bImageExist) && m_pDescription->GetText().GetLength() > 0) @@ -155,9 +155,9 @@ void CPWL_Signature::RePosChildWnd() m_pText->SetVisible(bTextVisible); m_pImage->SetVisible(m_bImageExist); - m_pText->Move(rcText, true, false); - m_pImage->Move(rcText, true, false); - m_pDescription->Move(rcDescription, true, false); + m_pText->Move(rcText, TRUE, FALSE); + m_pImage->Move(rcText, TRUE, FALSE); + m_pDescription->Move(rcDescription, TRUE, FALSE); } void CPWL_Signature::CreateChildWnd(const PWL_CREATEPARAM & cp) |