From 4183f201c5155717762df48e5d68330b754070f3 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Fri, 7 Jul 2017 16:10:06 -0700 Subject: Change parameter type to IPWL_FocusHandler::OnSetFocus(). The parameter is a CPWL_Wnd* but the only caller passes in a CPWL_Edit*, so change it to CPWL_Edit* and remove the type checks / casting. Change-Id: Ic2c85427bea5bf3d257b63c1e2ce9db5bee22136 Reviewed-on: https://pdfium-review.googlesource.com/7430 Commit-Queue: dsinclair Reviewed-by: dsinclair --- fpdfsdk/formfiller/cffl_combobox.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'fpdfsdk/formfiller/cffl_combobox.cpp') diff --git a/fpdfsdk/formfiller/cffl_combobox.cpp b/fpdfsdk/formfiller/cffl_combobox.cpp index 006828df75..6af65de643 100644 --- a/fpdfsdk/formfiller/cffl_combobox.cpp +++ b/fpdfsdk/formfiller/cffl_combobox.cpp @@ -257,11 +257,7 @@ bool CFFL_ComboBox::IsFieldFull(CPDFSDK_PageView* pPageView) { } #endif // PDF_ENABLE_XFA -void CFFL_ComboBox::OnSetFocus(CPWL_Wnd* pWnd) { - if (pWnd->GetClassName() != PWL_CLASSNAME_EDIT) - return; - - CPWL_Edit* pEdit = (CPWL_Edit*)pWnd; +void CFFL_ComboBox::OnSetFocus(CPWL_Edit* pEdit) { pEdit->SetCharSet(FX_CHARSET_ChineseSimplified); pEdit->SetReadyToInput(); -- cgit v1.2.3