summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/cfwl_pushbutton.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/fwl/core/cfwl_pushbutton.cpp')
-rw-r--r--xfa/fwl/core/cfwl_pushbutton.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/xfa/fwl/core/cfwl_pushbutton.cpp b/xfa/fwl/core/cfwl_pushbutton.cpp
index 0930f93aa0..2d03e86412 100644
--- a/xfa/fwl/core/cfwl_pushbutton.cpp
+++ b/xfa/fwl/core/cfwl_pushbutton.cpp
@@ -12,18 +12,15 @@ CFWL_PushButton::CFWL_PushButton(const IFWL_App* app) : CFWL_Widget(app) {}
CFWL_PushButton::~CFWL_PushButton() {}
-void CFWL_PushButton::Initialize(const CFWL_WidgetProperties* pProperties) {
+void CFWL_PushButton::Initialize() {
ASSERT(!m_pIface);
- if (pProperties)
- *m_pProperties = *pProperties;
-
std::unique_ptr<IFWL_PushButton> pPushButton(new IFWL_PushButton(
m_pApp, m_pProperties->MakeWidgetImpProperties(&m_buttonData)));
pPushButton->Initialize();
m_pIface = std::move(pPushButton);
- CFWL_Widget::Initialize(pProperties);
+ CFWL_Widget::Initialize();
}
IFWL_PushButton* CFWL_PushButton::GetWidget() {