Index: xfa/fwl/lightwidget/cfwl_datetimepicker.cpp |
diff --git a/xfa/fwl/lightwidget/cfwl_datetimepicker.cpp b/xfa/fwl/lightwidget/cfwl_datetimepicker.cpp |
index fccf8eac6323335c3515ca90224790496c7c3e6c..be595647500bed3ae88a1a040ba3275afc879318 100644 |
--- a/xfa/fwl/lightwidget/cfwl_datetimepicker.cpp |
+++ b/xfa/fwl/lightwidget/cfwl_datetimepicker.cpp |
@@ -27,10 +27,8 @@ FWL_Error CFWL_DateTimePicker::Initialize( |
if (pProperties) { |
*m_pProperties = *pProperties; |
} |
- std::unique_ptr<IFWL_DateTimePicker> pDateTimePicker( |
- IFWL_DateTimePicker::Create( |
- m_pProperties->MakeWidgetImpProperties(&m_DateTimePickerDP), |
- nullptr)); |
+ std::unique_ptr<IFWL_DateTimePicker> pDateTimePicker(new IFWL_DateTimePicker( |
+ m_pProperties->MakeWidgetImpProperties(&m_DateTimePickerDP))); |
FWL_Error ret = pDateTimePicker->Initialize(); |
if (ret != FWL_Error::Succeeded) { |
return ret; |