Index: xfa/fxfa/app/xfa_ffcheckbutton.cpp |
diff --git a/xfa/fxfa/app/xfa_ffcheckbutton.cpp b/xfa/fxfa/app/xfa_ffcheckbutton.cpp |
index 85f445fedcbb453e943e4e5de061baa4f373f81d..4527afef7d92aebe106a4778e5e506c3244563b5 100644 |
--- a/xfa/fxfa/app/xfa_ffcheckbutton.cpp |
+++ b/xfa/fxfa/app/xfa_ffcheckbutton.cpp |
@@ -298,11 +298,11 @@ FX_BOOL CXFA_FFCheckButton::UpdateFWLData() { |
int32_t CXFA_FFCheckButton::OnProcessMessage(CFWL_Message* pMessage) { |
return m_pOldDelegate->OnProcessMessage(pMessage); |
} |
+ |
FWL_ERR CXFA_FFCheckButton::OnProcessEvent(CFWL_Event* pEvent) { |
CXFA_FFField::OnProcessEvent(pEvent); |
- uint32_t dwEventID = pEvent->GetClassID(); |
- switch (dwEventID) { |
- case FWL_EVTHASH_CKB_CheckStateChanged: { |
+ switch (pEvent->GetClassID()) { |
+ case CFWL_EventType::CheckStateChanged: { |
CXFA_EventParam eParam; |
eParam.m_eType = XFA_EVENT_Change; |
m_pDataAcc->GetValue(eParam.m_wsNewText, XFA_VALUEPICTURE_Raw); |
@@ -327,10 +327,12 @@ FWL_ERR CXFA_FFCheckButton::OnProcessEvent(CFWL_Event* pEvent) { |
m_pDataAcc->ProcessEvent(XFA_ATTRIBUTEENUM_Click, &eParam); |
break; |
} |
- default: {} |
+ default: |
+ break; |
} |
return m_pOldDelegate->OnProcessEvent(pEvent); |
} |
+ |
FWL_ERR CXFA_FFCheckButton::OnDrawWidget(CFX_Graphics* pGraphics, |
const CFX_Matrix* pMatrix) { |
return m_pOldDelegate->OnDrawWidget(pGraphics, pMatrix); |