From 7fa190dbda7b3a5f46b8108aa7984b2fcc23d45c Mon Sep 17 00:00:00 2001 From: dsinclair Date: Wed, 7 Dec 2016 17:23:28 -0800 Subject: Cleanup default FWL params part I This Cl removes some of the default FWL parameters. Review-Url: https://codereview.chromium.org/2533623002 --- xfa/fwl/core/cfwl_pushbutton.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'xfa/fwl/core/cfwl_pushbutton.cpp') diff --git a/xfa/fwl/core/cfwl_pushbutton.cpp b/xfa/fwl/core/cfwl_pushbutton.cpp index 295de1e07e..9e1e693ff0 100644 --- a/xfa/fwl/core/cfwl_pushbutton.cpp +++ b/xfa/fwl/core/cfwl_pushbutton.cpp @@ -51,12 +51,12 @@ void CFWL_PushButton::GetWidgetRect(CFX_RectF& rect, bool bAutoSize) { CFWL_Widget::GetWidgetRect(rect, true); } -void CFWL_PushButton::SetStates(uint32_t dwStates, bool bSet) { - if ((dwStates & FWL_WGTSTATE_Disabled) && bSet) { +void CFWL_PushButton::SetStates(uint32_t dwStates) { + if (dwStates & FWL_WGTSTATE_Disabled) { m_pProperties->m_dwStates = FWL_WGTSTATE_Disabled; return; } - CFWL_Widget::SetStates(dwStates, bSet); + CFWL_Widget::SetStates(dwStates); } void CFWL_PushButton::Update() { -- cgit v1.2.3