From 97da97662417085774f75c26e535c6fbe70266ae Mon Sep 17 00:00:00 2001 From: Wei Li Date: Fri, 11 Mar 2016 17:00:48 -0800 Subject: Re-enable MSVC warning 4800 for compiling with chromium_code Mainly change the code to avoid the warnings; in a few cases we have to use explicit casts. BUG=pdfium:29 R=tsepez@chromium.org Review URL: https://codereview.chromium.org/1783023002 . --- fpdfsdk/include/pdfwindow/PWL_SpecialButton.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'fpdfsdk/include/pdfwindow/PWL_SpecialButton.h') diff --git a/fpdfsdk/include/pdfwindow/PWL_SpecialButton.h b/fpdfsdk/include/pdfwindow/PWL_SpecialButton.h index 6135b87862..8731562726 100644 --- a/fpdfsdk/include/pdfwindow/PWL_SpecialButton.h +++ b/fpdfsdk/include/pdfwindow/PWL_SpecialButton.h @@ -29,11 +29,11 @@ class CPWL_CheckBox : public CPWL_Button { FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, FX_DWORD nFlag) override; FX_BOOL OnChar(FX_WORD nChar, FX_DWORD nFlag) override; - void SetCheck(FX_BOOL bCheck); - FX_BOOL IsChecked() const; + void SetCheck(bool bCheck); + bool IsChecked() const; private: - FX_BOOL m_bChecked; + bool m_bChecked; }; class CPWL_RadioButton : public CPWL_Button { @@ -46,11 +46,11 @@ class CPWL_RadioButton : public CPWL_Button { FX_BOOL OnLButtonUp(const CFX_FloatPoint& point, FX_DWORD nFlag) override; FX_BOOL OnChar(FX_WORD nChar, FX_DWORD nFlag) override; - void SetCheck(FX_BOOL bCheck); - FX_BOOL IsChecked() const; + void SetCheck(bool bCheck); + bool IsChecked() const; private: - FX_BOOL m_bChecked; + bool m_bChecked; }; #endif // FPDFSDK_INCLUDE_PDFWINDOW_PWL_SPECIALBUTTON_H_ -- cgit v1.2.3