From 77e3fc5cebfb19aed09f920536200e017cff9a0b Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Thu, 15 Jun 2017 12:37:33 -0700 Subject: Change some CFFL classes to use early returns. Also switch C-style casts to the appropriate C++ casts, and add helper functions in some cases. Change-Id: I73f1ab36c6c89ced9d2b7b98393805142661dcac Reviewed-on: https://pdfium-review.googlesource.com/6650 Commit-Queue: dsinclair Reviewed-by: dsinclair --- fpdfsdk/formfiller/cffl_radiobutton.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'fpdfsdk/formfiller/cffl_radiobutton.h') diff --git a/fpdfsdk/formfiller/cffl_radiobutton.h b/fpdfsdk/formfiller/cffl_radiobutton.h index 905fc1b016..29b7e3835a 100644 --- a/fpdfsdk/formfiller/cffl_radiobutton.h +++ b/fpdfsdk/formfiller/cffl_radiobutton.h @@ -9,6 +9,8 @@ #include "fpdfsdk/formfiller/cffl_formfiller.h" +class CPWL_RadioButton; + class CFFL_RadioButton : public CFFL_Button { public: CFFL_RadioButton(CPDFSDK_FormFillEnvironment* pApp, CPDFSDK_Widget* pWidget); @@ -26,6 +28,9 @@ class CFFL_RadioButton : public CFFL_Button { const CFX_PointF& point) override; bool IsDataChanged(CPDFSDK_PageView* pPageView) override; void SaveData(CPDFSDK_PageView* pPageView) override; + + private: + CPWL_RadioButton* GetRadioButton(CPDFSDK_PageView* pPageView, bool bNew); }; #endif // FPDFSDK_FORMFILLER_CFFL_RADIOBUTTON_H_ -- cgit v1.2.3