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

Unified Diff: xfa/fwl/lightwidget/cfwl_combobox.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_combobox.cpp
diff --git a/xfa/fwl/lightwidget/cfwl_combobox.cpp b/xfa/fwl/lightwidget/cfwl_combobox.cpp
index 9c4cd05e57bd1bb5a0fce0367b0cb252581288be..6a55b3b479f9facbbbfb90f9ebce1f8a36634f5c 100644
--- a/xfa/fwl/lightwidget/cfwl_combobox.cpp
+++ b/xfa/fwl/lightwidget/cfwl_combobox.cpp
@@ -8,6 +8,7 @@
#include <utility>
+#include "third_party/base/ptr_util.h"
#include "xfa/fwl/core/fwl_error.h"
#include "xfa/fwl/core/ifwl_widget.h"
@@ -25,8 +26,8 @@ FWL_Error CFWL_ComboBox::Initialize(const CFWL_WidgetProperties* pProperties) {
if (pProperties) {
*m_pProperties = *pProperties;
}
- std::unique_ptr<IFWL_ComboBox> pComboBox(IFWL_ComboBox::Create(
- m_pProperties->MakeWidgetImpProperties(&m_comboBoxData)));
+ std::unique_ptr<IFWL_ComboBox> pComboBox = pdfium::MakeUnique<IFWL_ComboBox>(
+ m_pProperties->MakeWidgetImpProperties(&m_comboBoxData));
FWL_Error ret = pComboBox->Initialize();
if (ret != FWL_Error::Succeeded) {
return ret;

Powered by Google App Engine
This is Rietveld 408576698