| Index: xfa/src/fwl/src/lightwidget/checkbox.cpp
|
| diff --git a/xfa/src/fwl/src/lightwidget/checkbox.cpp b/xfa/src/fwl/src/lightwidget/checkbox.cpp
|
| index 7ec0c515bd6beb2f12989427dd9b3d749953a764..952c565ba703e818f6485f46d92e7730f3c63370 100644
|
| --- a/xfa/src/fwl/src/lightwidget/checkbox.cpp
|
| +++ b/xfa/src/fwl/src/lightwidget/checkbox.cpp
|
| @@ -27,8 +27,9 @@ FWL_ERR CFWL_CheckBox::Initialize(const CFWL_WidgetProperties* pProperties) {
|
| if (m_pProperties->m_pOwner) {
|
| prop.m_pOwner = m_pProperties->m_pOwner->GetWidget();
|
| }
|
| - m_pIface = IFWL_CheckBox::Create();
|
| - FWL_ERR ret = ((IFWL_CheckBox*)m_pIface)->Initialize(prop, nullptr);
|
| + IFWL_CheckBox* pCheckBox = IFWL_CheckBox::Create();
|
| + m_pIface = pCheckBox;
|
| + FWL_ERR ret = pCheckBox->Initialize(prop, nullptr);
|
| if (ret == FWL_ERR_Succeeded) {
|
| CFWL_Widget::Initialize();
|
| }
|
| @@ -43,10 +44,10 @@ FWL_ERR CFWL_CheckBox::SetBoxSize(FX_FLOAT fHeight) {
|
| return FWL_ERR_Succeeded;
|
| }
|
| int32_t CFWL_CheckBox::GetCheckState() {
|
| - return ((IFWL_CheckBox*)m_pIface)->GetCheckState();
|
| + return static_cast<IFWL_CheckBox*>(m_pIface)->GetCheckState();
|
| }
|
| FWL_ERR CFWL_CheckBox::SetCheckState(int32_t iCheck) {
|
| - return ((IFWL_CheckBox*)m_pIface)->SetCheckState(iCheck);
|
| + return static_cast<IFWL_CheckBox*>(m_pIface)->SetCheckState(iCheck);
|
| }
|
| CFWL_CheckBox::CFWL_CheckBox() {}
|
| CFWL_CheckBox::~CFWL_CheckBox() {}
|
|
|