Index: xfa/fwl/lightwidget/cfwl_picturebox.cpp |
diff --git a/xfa/fwl/lightwidget/cfwl_picturebox.cpp b/xfa/fwl/lightwidget/cfwl_picturebox.cpp |
index e6328e72ff088ada08795be09c506806e4ba64df..d4b9f30d6e2c34b5dbff75c1bb648d9d3acc754b 100644 |
--- a/xfa/fwl/lightwidget/cfwl_picturebox.cpp |
+++ b/xfa/fwl/lightwidget/cfwl_picturebox.cpp |
@@ -23,8 +23,8 @@ FWL_Error CFWL_PictureBox::Initialize( |
if (pProperties) { |
*m_pProperties = *pProperties; |
} |
- std::unique_ptr<IFWL_PictureBox> pPictureBox(IFWL_PictureBox::Create( |
- m_pProperties->MakeWidgetImpProperties(&m_PictureBoxDP), nullptr)); |
+ std::unique_ptr<IFWL_PictureBox> pPictureBox(new IFWL_PictureBox( |
+ m_pProperties->MakeWidgetImpProperties(&m_PictureBoxDP))); |
FWL_Error ret = pPictureBox->Initialize(); |
if (ret != FWL_Error::Succeeded) { |
return ret; |