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_combo_box.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'fpdfsdk/pwl/cpwl_combo_box.h') diff --git a/fpdfsdk/pwl/cpwl_combo_box.h b/fpdfsdk/pwl/cpwl_combo_box.h index e3a3ff38ca..ee6ed90910 100644 --- a/fpdfsdk/pwl/cpwl_combo_box.h +++ b/fpdfsdk/pwl/cpwl_combo_box.h @@ -16,7 +16,8 @@ class CPWL_CBListBox final : public CPWL_ListBox { public: - explicit CPWL_CBListBox(std::unique_ptr pAttachedData); + CPWL_CBListBox(const CreateParams& cp, + std::unique_ptr pAttachedData); ~CPWL_CBListBox() override; // CPWL_ListBox @@ -30,7 +31,8 @@ class CPWL_CBListBox final : public CPWL_ListBox { class CPWL_CBButton final : public CPWL_Wnd { public: - explicit CPWL_CBButton(std::unique_ptr pAttachedData); + CPWL_CBButton(const CreateParams& cp, + std::unique_ptr pAttachedData); ~CPWL_CBButton() override; // CPWL_Wnd @@ -42,7 +44,8 @@ class CPWL_CBButton final : public CPWL_Wnd { class CPWL_ComboBox final : public CPWL_Wnd { public: - explicit CPWL_ComboBox(std::unique_ptr pAttachedData); + CPWL_ComboBox(const CreateParams& cp, + std::unique_ptr pAttachedData); ~CPWL_ComboBox() override; CPWL_Edit* GetEdit() const { return m_pEdit.Get(); } -- cgit v1.2.3