summaryrefslogtreecommitdiff
path: root/xfa
diff options
context:
space:
mode:
Diffstat (limited to 'xfa')
-rw-r--r--xfa/src/fwl/src/lightwidget/checkbox.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/xfa/src/fwl/src/lightwidget/checkbox.cpp b/xfa/src/fwl/src/lightwidget/checkbox.cpp
index 37aeb087f1..b1b938435b 100644
--- a/xfa/src/fwl/src/lightwidget/checkbox.cpp
+++ b/xfa/src/fwl/src/lightwidget/checkbox.cpp
@@ -14,12 +14,8 @@ FWL_ERR CFWL_CheckBox::Initialize(const CFWL_WidgetProperties* pProperties) {
if (pProperties) {
*m_pProperties = *pProperties;
}
- CFWL_WidgetImpProperties prop =
- m_pProperties->MakeWidgetImpProperties(&m_checkboxData);
- prop.m_pParent = m_pProperties->m_pParent->GetWidget();
- prop.m_pOwner = m_pProperties->m_pOwner->GetWidget();
- nonstd::unique_ptr<IFWL_CheckBox> pCheckBox(
- IFWL_CheckBox::Create(prop, nullptr));
+ nonstd::unique_ptr<IFWL_CheckBox> pCheckBox(IFWL_CheckBox::Create(
+ m_pProperties->MakeWidgetImpProperties(&m_checkboxData), nullptr));
FWL_ERR ret = pCheckBox->Initialize();
if (ret != FWL_ERR_Succeeded) {
return ret;