From ea08d171755bd4088d01261c55d1bfe0ff0f9f39 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Mon, 29 Oct 2018 17:29:06 +0000 Subject: Fold virtual CPWL_Wnd::OnCreate into subclass constructors. All they do is twiddle their own CreateParameters. Since we now have the create paramters earlier, we need not have a special method for this. Change-Id: I5b94c578275c71516afb87bd085f5fb58b3962e2 Reviewed-on: https://pdfium-review.googlesource.com/c/44730 Commit-Queue: Tom Sepez Reviewed-by: Lei Zhang --- fpdfsdk/pwl/cpwl_wnd.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'fpdfsdk/pwl/cpwl_wnd.h') diff --git a/fpdfsdk/pwl/cpwl_wnd.h b/fpdfsdk/pwl/cpwl_wnd.h index 64fe1310e2..339c336caa 100644 --- a/fpdfsdk/pwl/cpwl_wnd.h +++ b/fpdfsdk/pwl/cpwl_wnd.h @@ -260,13 +260,12 @@ class CPWL_Wnd : public CPWL_TimerHandler, public Observable { virtual void DrawThisAppearance(CFX_RenderDevice* pDevice, const CFX_Matrix& mtUser2Device); - virtual void OnCreate(CreateParams* pParamsToAdjust); virtual void OnCreated(); virtual void OnDestroy(); bool IsNotifying() const { return m_bNotifying; } bool IsValid() const { return m_bCreated; } - const CreateParams& GetCreationParams() const { return m_CreationParams; } + CreateParams* GetCreationParams() { return &m_CreationParams; } // Returns |true| iff this instance is still allocated. bool InvalidateRectMove(const CFX_FloatRect& rcOld, -- cgit v1.2.3