Chromium Code Reviews| Index: xfa/src/fwl/src/basewidget/fwl_datetimepickerimp.cpp |
| diff --git a/xfa/src/fwl/src/basewidget/fwl_datetimepickerimp.cpp b/xfa/src/fwl/src/basewidget/fwl_datetimepickerimp.cpp |
| index c378ccde02757a1bebdaf92a3d28871237426ed5..c17646a52416dd99a24127d90ecc44d3126c2e2a 100644 |
| --- a/xfa/src/fwl/src/basewidget/fwl_datetimepickerimp.cpp |
| +++ b/xfa/src/fwl/src/basewidget/fwl_datetimepickerimp.cpp |
| @@ -662,13 +662,13 @@ FX_BOOL CFWL_DateTimePickerImp::Paste(const CFX_WideString& wsPaste) { |
| return m_pEdit->Paste(wsPaste); |
| } |
| FX_BOOL CFWL_DateTimePickerImp::SelectAll() { |
| - return (m_pEdit->AddSelRange(0) == FWL_ERR_Succeeded) ? TRUE : FALSE; |
| + return !!(m_pEdit->AddSelRange(0) == FWL_ERR_Succeeded); |
|
Tom Sepez
2015/10/19 20:16:10
This three as well.
Lei Zhang
2015/10/20 00:41:43
Done. Done. Done.
|
| } |
| FX_BOOL CFWL_DateTimePickerImp::Delete() { |
| - return (m_pEdit->ClearText() == FWL_ERR_Succeeded) ? TRUE : FALSE; |
| + return !!(m_pEdit->ClearText() == FWL_ERR_Succeeded); |
| } |
| FX_BOOL CFWL_DateTimePickerImp::DeSelect() { |
| - return (m_pEdit->ClearSelections() == FWL_ERR_Succeeded) ? TRUE : FALSE; |
| + return !!(m_pEdit->ClearSelections() == FWL_ERR_Succeeded); |
| } |
| FWL_ERR CFWL_DateTimePickerImp::GetBBox(CFX_RectF& rect) { |
| if (m_pWidgetMgr->IsFormDisabled()) { |