Index: xfa/fwl/lightwidget/cfwl_listbox.cpp |
diff --git a/xfa/fwl/lightwidget/cfwl_listbox.cpp b/xfa/fwl/lightwidget/cfwl_listbox.cpp |
index a0fff486cd12e81c21f552ba7772d46831ba1505..0245941a5fee8eb3b15d5a81b2203df57b7faf08 100644 |
--- a/xfa/fwl/lightwidget/cfwl_listbox.cpp |
+++ b/xfa/fwl/lightwidget/cfwl_listbox.cpp |
@@ -8,6 +8,7 @@ |
#include <memory> |
+#include "third_party/base/ptr_util.h" |
#include "third_party/base/stl_util.h" |
IFWL_ListBox* CFWL_ListBox::GetWidget() { |
@@ -24,8 +25,8 @@ FWL_Error CFWL_ListBox::Initialize(const CFWL_WidgetProperties* pProperties) { |
if (pProperties) { |
*m_pProperties = *pProperties; |
} |
- std::unique_ptr<IFWL_ListBox> pListBox(IFWL_ListBox::Create( |
- m_pProperties->MakeWidgetImpProperties(&m_ListBoxDP), nullptr)); |
+ std::unique_ptr<IFWL_ListBox> pListBox = pdfium::MakeUnique<IFWL_ListBox>( |
+ m_pProperties->MakeWidgetImpProperties(&m_ListBoxDP), nullptr); |
FWL_Error ret = pListBox->Initialize(); |
if (ret != FWL_Error::Succeeded) { |
return ret; |