Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(211)

Unified Diff: xfa/fwl/lightwidget/cfwl_listbox.cpp

Issue 2433133002: Remove IFWL_*::Create methods, use new (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698