| Index: xfa/src/fwl/src/basewidget/fwl_tooltipctrlimp.cpp
|
| diff --git a/xfa/src/fwl/src/basewidget/fwl_tooltipctrlimp.cpp b/xfa/src/fwl/src/basewidget/fwl_tooltipctrlimp.cpp
|
| index cbc27caf855d6247a76f5720579f498f82b4daab..f466764e39f6c002ceea03c17f7db3a98fee4c79 100644
|
| --- a/xfa/src/fwl/src/basewidget/fwl_tooltipctrlimp.cpp
|
| +++ b/xfa/src/fwl/src/basewidget/fwl_tooltipctrlimp.cpp
|
| @@ -79,14 +79,12 @@ FWL_ERR CFWL_ToolTipImp::Initialize() {
|
| m_pProperties->m_dwStyles &= ~FWL_WGTSTYLE_Child;
|
| _FWL_ERR_CHECK_RETURN_VALUE_IF_FAIL(CFWL_WidgetImp::Initialize(),
|
| FWL_ERR_Indefinite);
|
| - m_pDelegate = (IFWL_WidgetDelegate*)new CFWL_ToolTipImpDelegate(this);
|
| + m_pDelegate = new CFWL_ToolTipImpDelegate(this);
|
| return FWL_ERR_Succeeded;
|
| }
|
| FWL_ERR CFWL_ToolTipImp::Finalize() {
|
| - if (m_pDelegate) {
|
| - delete (CFWL_ToolTipImpDelegate*)m_pDelegate;
|
| - m_pDelegate = NULL;
|
| - }
|
| + delete m_pDelegate;
|
| + m_pDelegate = nullptr;
|
| return CFWL_WidgetImp::Finalize();
|
| }
|
| FWL_ERR CFWL_ToolTipImp::GetWidgetRect(CFX_RectF& rect, FX_BOOL bAutoSize) {
|
|
|