summaryrefslogtreecommitdiff
path: root/fpdfsdk/formfiller/cffl_radiobutton.h
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-06-15 12:37:33 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-06-15 20:42:01 +0000
commit77e3fc5cebfb19aed09f920536200e017cff9a0b (patch)
tree64700810faf138812cdcf7573a9caff08fb0411b /fpdfsdk/formfiller/cffl_radiobutton.h
parentb7384b5b997975c36bb37d25c63e2c900eca41f9 (diff)
downloadpdfium-77e3fc5cebfb19aed09f920536200e017cff9a0b.tar.xz
Change some CFFL classes to use early returns.chromium/3132
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 <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/formfiller/cffl_radiobutton.h')
-rw-r--r--fpdfsdk/formfiller/cffl_radiobutton.h5
1 files changed, 5 insertions, 0 deletions
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_