From b7c4a0243e82f6c4ff91cd90b5bae336100c3c70 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 26 Oct 2018 23:56:27 +0000 Subject: Pass CreateParams to CPWL_Wnd constructor. The previous reshuffling means we always have the create params earlier, so pass them in at create time. Clean up two forward declarations that were not needed as noticed in the process. Change-Id: I5d3861f3c1e3508e0d25950e919859244fac5f8b Reviewed-on: https://pdfium-review.googlesource.com/c/44710 Reviewed-by: Tom Sepez Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- fpdfsdk/pwl/cpwl_special_button.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'fpdfsdk/pwl/cpwl_special_button.h') diff --git a/fpdfsdk/pwl/cpwl_special_button.h b/fpdfsdk/pwl/cpwl_special_button.h index 28c2a6b14c..68bb965a49 100644 --- a/fpdfsdk/pwl/cpwl_special_button.h +++ b/fpdfsdk/pwl/cpwl_special_button.h @@ -13,7 +13,8 @@ class CPWL_PushButton final : public CPWL_Button { public: - explicit CPWL_PushButton(std::unique_ptr pAttachedData); + CPWL_PushButton(const CreateParams& cp, + std::unique_ptr pAttachedData); ~CPWL_PushButton() override; // CPWL_Button: @@ -22,7 +23,8 @@ class CPWL_PushButton final : public CPWL_Button { class CPWL_CheckBox final : public CPWL_Button { public: - explicit CPWL_CheckBox(std::unique_ptr pAttachedData); + CPWL_CheckBox(const CreateParams& cp, + std::unique_ptr pAttachedData); ~CPWL_CheckBox() override; // CPWL_Button: @@ -38,7 +40,8 @@ class CPWL_CheckBox final : public CPWL_Button { class CPWL_RadioButton final : public CPWL_Button { public: - explicit CPWL_RadioButton(std::unique_ptr pAttachedData); + CPWL_RadioButton(const CreateParams& cp, + std::unique_ptr pAttachedData); ~CPWL_RadioButton() override; // CPWL_Button -- cgit v1.2.3