| Index: xfa/src/fwl/src/basewidget/fwl_checkboximp.cpp
|
| diff --git a/xfa/src/fwl/src/basewidget/fwl_checkboximp.cpp b/xfa/src/fwl/src/basewidget/fwl_checkboximp.cpp
|
| index 01fbb732cbf899f1b92500b3a359dec41f6e3fcf..e490852ff034461d6ec8bb1ed59ef85f7b1f6f4f 100644
|
| --- a/xfa/src/fwl/src/basewidget/fwl_checkboximp.cpp
|
| +++ b/xfa/src/fwl/src/basewidget/fwl_checkboximp.cpp
|
| @@ -77,14 +77,12 @@ FX_DWORD CFWL_CheckBoxImp::GetClassID() const {
|
| FWL_ERR CFWL_CheckBoxImp::Initialize() {
|
| _FWL_ERR_CHECK_RETURN_VALUE_IF_FAIL(CFWL_WidgetImp::Initialize(),
|
| FWL_ERR_Indefinite);
|
| - m_pDelegate = (IFWL_WidgetDelegate*)new CFWL_CheckBoxImpDelegate(this);
|
| + m_pDelegate = new CFWL_CheckBoxImpDelegate(this);
|
| return FWL_ERR_Succeeded;
|
| }
|
| FWL_ERR CFWL_CheckBoxImp::Finalize() {
|
| - if (m_pDelegate) {
|
| - delete (CFWL_CheckBoxImpDelegate*)m_pDelegate;
|
| - m_pDelegate = NULL;
|
| - }
|
| + delete m_pDelegate;
|
| + m_pDelegate = nullptr;
|
| return CFWL_WidgetImp::Finalize();
|
| }
|
| FWL_ERR CFWL_CheckBoxImp::GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize) {
|
|
|