From 8fba261fb6584169c5788326dd49e91bc9babda5 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 26 Oct 2018 21:27:41 +0000 Subject: Remove pParentWnd field entirely from CreateParams. Put it into CPWL_Wnd directly, and set/clear it when a child is added/removed from a parent. Change-Id: I7a8cd0cf22dbd6173e64bec5d844df56ad373722 Reviewed-on: https://pdfium-review.googlesource.com/c/44692 Reviewed-by: Lei Zhang Commit-Queue: Tom Sepez --- fpdfsdk/pwl/cpwl_scroll_bar.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'fpdfsdk/pwl/cpwl_scroll_bar.cpp') diff --git a/fpdfsdk/pwl/cpwl_scroll_bar.cpp b/fpdfsdk/pwl/cpwl_scroll_bar.cpp index 3e52e0d81b..34154aaa98 100644 --- a/fpdfsdk/pwl/cpwl_scroll_bar.cpp +++ b/fpdfsdk/pwl/cpwl_scroll_bar.cpp @@ -535,7 +535,6 @@ void CPWL_ScrollBar::NotifyMouseMove(CPWL_Wnd* child, const CFX_PointF& pos) { void CPWL_ScrollBar::CreateButtons(const CreateParams& cp) { CreateParams scp = cp; - scp.pParentWnd = this; scp.dwBorderWidth = 2; scp.nBorderStyle = BorderStyle::BEVELED; scp.dwFlags = -- cgit v1.2.3