| Index: xfa/src/fwl/src/core/fwl_formimp.cpp
|
| diff --git a/xfa/src/fwl/src/core/fwl_formimp.cpp b/xfa/src/fwl/src/core/fwl_formimp.cpp
|
| index 21d810eeebf229b4953eadda0ab8bf6da79a0379..b72afdf5c37065548da1b6962597ae08c38e066e 100644
|
| --- a/xfa/src/fwl/src/core/fwl_formimp.cpp
|
| +++ b/xfa/src/fwl/src/core/fwl_formimp.cpp
|
| @@ -135,14 +135,12 @@ FWL_ERR CFWL_FormImp::Initialize() {
|
| FWL_ERR_Indefinite);
|
| RegisterForm();
|
| RegisterEventTarget();
|
| - m_pDelegate = (IFWL_WidgetDelegate*)new CFWL_FormImpDelegate(this);
|
| + m_pDelegate = new CFWL_FormImpDelegate(this);
|
| return FWL_ERR_Succeeded;
|
| }
|
| FWL_ERR CFWL_FormImp::Finalize() {
|
| - if (m_pDelegate) {
|
| - delete (CFWL_FormImpDelegate*)m_pDelegate;
|
| - m_pDelegate = NULL;
|
| - }
|
| + delete m_pDelegate;
|
| + m_pDelegate = nullptr;
|
| UnregisterEventTarget();
|
| UnRegisterForm();
|
| return CFWL_WidgetImp::Finalize();
|
|
|