summaryrefslogtreecommitdiff
path: root/fpdfsdk/formfiller/cffl_textfield.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2017-07-07 16:10:06 -0700
committerChromium commit bot <commit-bot@chromium.org>2017-07-10 13:23:13 +0000
commit4183f201c5155717762df48e5d68330b754070f3 (patch)
tree49a3ce27be46ee5898c94e91034bcbe560e18caa /fpdfsdk/formfiller/cffl_textfield.cpp
parentb46ce4172ee8282a39997c175dff2bd8f187208f (diff)
downloadpdfium-4183f201c5155717762df48e5d68330b754070f3.tar.xz
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 <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/formfiller/cffl_textfield.cpp')
-rw-r--r--fpdfsdk/formfiller/cffl_textfield.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/fpdfsdk/formfiller/cffl_textfield.cpp b/fpdfsdk/formfiller/cffl_textfield.cpp
index da8c14d0ff..70bc202fbf 100644
--- a/fpdfsdk/formfiller/cffl_textfield.cpp
+++ b/fpdfsdk/formfiller/cffl_textfield.cpp
@@ -255,11 +255,7 @@ bool CFFL_TextField::IsFieldFull(CPDFSDK_PageView* pPageView) {
}
#endif // PDF_ENABLE_XFA
-void CFFL_TextField::OnSetFocus(CPWL_Wnd* pWnd) {
- if (pWnd->GetClassName() != PWL_CLASSNAME_EDIT)
- return;
-
- CPWL_Edit* pEdit = (CPWL_Edit*)pWnd;
+void CFFL_TextField::OnSetFocus(CPWL_Edit* pEdit) {
pEdit->SetCharSet(FX_CHARSET_ChineseSimplified);
pEdit->SetReadyToInput();