Index: xfa/fwl/lightwidget/cfwl_pushbutton.cpp |
diff --git a/xfa/fwl/lightwidget/cfwl_pushbutton.cpp b/xfa/fwl/lightwidget/cfwl_pushbutton.cpp |
index 79afe805cd578748b0437f862595d56f9a08f324..d864ea9ca20e7f6a4687c808c4800eccee06c04a 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; |