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

Unified Diff: xfa/fwl/lightwidget/cfwl_pushbutton.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_pushbutton.cpp
diff --git a/xfa/fwl/lightwidget/cfwl_pushbutton.cpp b/xfa/fwl/lightwidget/cfwl_pushbutton.cpp
index 79afe805cd578748b0437f862595d56f9a08f324..5ffd4efcd50f2bc0a71abb8901da620207340b2e 100644
--- a/xfa/fwl/lightwidget/cfwl_pushbutton.cpp
+++ b/xfa/fwl/lightwidget/cfwl_pushbutton.cpp
@@ -8,6 +8,8 @@
#include <memory>
+#include "third_party/base/ptr_util.h"
+
IFWL_PushButton* CFWL_PushButton::GetWidget() {
return static_cast<IFWL_PushButton*>(m_pIface.get());
}
@@ -23,8 +25,9 @@ FWL_Error CFWL_PushButton::Initialize(
if (pProperties) {
*m_pProperties = *pProperties;
}
- std::unique_ptr<IFWL_PushButton> pPushButton(IFWL_PushButton::Create(
- m_pProperties->MakeWidgetImpProperties(&m_buttonData), nullptr));
+ std::unique_ptr<IFWL_PushButton> pPushButton =
+ pdfium::MakeUnique<IFWL_PushButton>(
+ m_pProperties->MakeWidgetImpProperties(&m_buttonData));
FWL_Error ret = pPushButton->Initialize();
if (ret != FWL_Error::Succeeded) {
return ret;
« xfa/fwl/lightwidget/cfwl_checkbox.cpp ('K') | « xfa/fwl/lightwidget/cfwl_picturebox.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698