diff options
Diffstat (limited to 'xfa/fwl/lightwidget/cfwl_pushbutton.cpp')
-rw-r--r-- | xfa/fwl/lightwidget/cfwl_pushbutton.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fwl/lightwidget/cfwl_pushbutton.cpp b/xfa/fwl/lightwidget/cfwl_pushbutton.cpp index 79afe805cd..d864ea9ca2 100644 --- a/xfa/fwl/lightwidget/cfwl_pushbutton.cpp +++ b/xfa/fwl/lightwidget/cfwl_pushbutton.cpp @@ -23,8 +23,8 @@ FWL_Error CFWL_PushButton::Initialize( if (pProperties) { *m_pProperties = *pProperties; } - std::unique_ptr<IFWL_PushButton> pPushButton(IFWL_PushButton::Create( - m_pProperties->MakeWidgetImpProperties(&m_buttonData), nullptr)); + std::unique_ptr<IFWL_PushButton> pPushButton(new IFWL_PushButton( + m_pProperties->MakeWidgetImpProperties(&m_buttonData))); FWL_Error ret = pPushButton->Initialize(); if (ret != FWL_Error::Succeeded) { return ret; |