summaryrefslogtreecommitdiff
path: root/fpdfsdk/pwl/cpwl_wnd.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-10-29 17:29:06 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-29 17:29:06 +0000
commitea08d171755bd4088d01261c55d1bfe0ff0f9f39 (patch)
treeedd21e3bbde0b1bd13b067ce7682111f32f0d8e4 /fpdfsdk/pwl/cpwl_wnd.cpp
parentb7c4a0243e82f6c4ff91cd90b5bae336100c3c70 (diff)
downloadpdfium-ea08d171755bd4088d01261c55d1bfe0ff0f9f39.tar.xz
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 <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/pwl/cpwl_wnd.cpp')
-rw-r--r--fpdfsdk/pwl/cpwl_wnd.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/fpdfsdk/pwl/cpwl_wnd.cpp b/fpdfsdk/pwl/cpwl_wnd.cpp
index 90aa15cfee..66b069dbb4 100644
--- a/fpdfsdk/pwl/cpwl_wnd.cpp
+++ b/fpdfsdk/pwl/cpwl_wnd.cpp
@@ -122,7 +122,6 @@ CPWL_Wnd::~CPWL_Wnd() {
void CPWL_Wnd::Realize() {
ASSERT(!m_bCreated);
- OnCreate(&m_CreationParams);
m_CreationParams.rcRectWnd.Normalize();
m_rcWindow = m_CreationParams.rcRectWnd;
m_rcClip = m_rcWindow;
@@ -144,8 +143,6 @@ void CPWL_Wnd::Realize() {
m_bCreated = true;
}
-void CPWL_Wnd::OnCreate(CreateParams* pParamsToAdjust) {}
-
void CPWL_Wnd::OnCreated() {}
void CPWL_Wnd::OnDestroy() {}
@@ -604,10 +601,8 @@ void CPWL_Wnd::CreateChildWnd(const CreateParams& cp) {}
void CPWL_Wnd::SetCursor() {
if (IsValid()) {
- if (CFX_SystemHandler* pSH = GetSystemHandler()) {
- int32_t nCursorType = GetCreationParams().eCursorType;
- pSH->SetCursor(nCursorType);
- }
+ if (CFX_SystemHandler* pSH = GetSystemHandler())
+ pSH->SetCursor(GetCreationParams()->eCursorType);
}
}