From 0ca71ec811e33818d2ccba3221fdb660811b813c Mon Sep 17 00:00:00 2001 From: dsinclair Date: Wed, 19 Oct 2016 07:59:25 -0700 Subject: Remove FWL Create methods, use new instead Review-Url: https://chromiumcodereview.appspot.com/2422303003 --- xfa/fxfa/app/xfa_ffpushbutton.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'xfa/fxfa/app/xfa_ffpushbutton.cpp') diff --git a/xfa/fxfa/app/xfa_ffpushbutton.cpp b/xfa/fxfa/app/xfa_ffpushbutton.cpp index cd395b4703..77341cd53e 100644 --- a/xfa/fxfa/app/xfa_ffpushbutton.cpp +++ b/xfa/fxfa/app/xfa_ffpushbutton.cpp @@ -52,10 +52,9 @@ void CXFA_FFPushButton::RenderWidget(CFX_Graphics* pGS, } FX_BOOL CXFA_FFPushButton::LoadWidget() { ASSERT(!m_pNormalWidget); - CFWL_PushButton* pPushButton = CFWL_PushButton::Create(); - if (pPushButton) { - pPushButton->Initialize(); - } + CFWL_PushButton* pPushButton = new CFWL_PushButton; + pPushButton->Initialize(); + m_pOldDelegate = pPushButton->SetDelegate(this); m_pNormalWidget = pPushButton; m_pNormalWidget->SetLayoutItem(this); -- cgit v1.2.3