| Index: xfa/fwl/lightwidget/cfwl_edit.cpp
|
| diff --git a/xfa/fwl/lightwidget/cfwl_edit.cpp b/xfa/fwl/lightwidget/cfwl_edit.cpp
|
| index 191bbd68ebc51933ac74a96b7f60176c90223668..e69c6e63daa1518e404fff1b8cab780a782515e3 100644
|
| --- a/xfa/fwl/lightwidget/cfwl_edit.cpp
|
| +++ b/xfa/fwl/lightwidget/cfwl_edit.cpp
|
| @@ -9,6 +9,8 @@
|
| #include <memory>
|
| #include <vector>
|
|
|
| +#include "third_party/base/ptr_util.h"
|
| +
|
| IFWL_Edit* CFWL_Edit::GetWidget() {
|
| return static_cast<IFWL_Edit*>(m_pIface.get());
|
| }
|
| @@ -23,8 +25,8 @@ FWL_Error CFWL_Edit::Initialize(const CFWL_WidgetProperties* pProperties) {
|
| if (pProperties) {
|
| *m_pProperties = *pProperties;
|
| }
|
| - std::unique_ptr<IFWL_Edit> pEdit(IFWL_Edit::Create(
|
| - m_pProperties->MakeWidgetImpProperties(nullptr), nullptr));
|
| + std::unique_ptr<IFWL_Edit> pEdit = pdfium::MakeUnique<IFWL_Edit>(
|
| + m_pProperties->MakeWidgetImpProperties(nullptr), nullptr);
|
| FWL_Error ret = pEdit->Initialize();
|
| if (ret != FWL_Error::Succeeded) {
|
| return ret;
|
|
|