FX_BOOL considered harmful, part 2.
[pdfium.git] / fpdfsdk / include / pdfwindow / PWL_SpecialButton.h
index 9b4ffd2..14e576d 100644 (file)
@@ -1,7 +1,7 @@
 // Copyright 2014 PDFium Authors. All rights reserved.
 // Use of this source code is governed by a BSD-style license that can be
 // found in the LICENSE file.
+
 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
 
 #ifndef FPDFSDK_INCLUDE_PDFWINDOW_PWL_SPECIALBUTTON_H_
@@ -26,14 +26,14 @@ public:
        virtual ~CPWL_CheckBox();
 
        virtual CFX_ByteString          GetClassName() const;
-       virtual FX_BOOL                         OnLButtonUp(const CPDF_Point & point, FX_DWORD nFlag);
-       virtual FX_BOOL                         OnChar(FX_WORD nChar, FX_DWORD nFlag);
+       virtual bool                            OnLButtonUp(const CPDF_Point & point, FX_DWORD nFlag);
+       virtual bool                            OnChar(FX_WORD nChar, FX_DWORD nFlag);
 
-       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 PWL_CLASS CPWL_RadioButton : public CPWL_Button
@@ -43,14 +43,14 @@ public:
        virtual ~CPWL_RadioButton();
 
        virtual CFX_ByteString          GetClassName() const;
-       virtual FX_BOOL                         OnLButtonUp(const CPDF_Point & point, FX_DWORD nFlag);
-       virtual FX_BOOL                         OnChar(FX_WORD nChar, FX_DWORD nFlag);
+       virtual bool                            OnLButtonUp(const CPDF_Point & point, FX_DWORD nFlag);
+       virtual bool                            OnChar(FX_WORD nChar, FX_DWORD nFlag);
 
-       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_