diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-04-26 18:33:58 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-04-26 18:33:58 +0000 |
commit | ea3a2529a7aa0199b385b7caa2e465c124eac8aa (patch) | |
tree | cf8beb27054209ef2b71222c3cdc81bd39192651 /fpdfsdk/pwl | |
parent | f9666864254bf84ef878630bbdaaaabbecab8ba5 (diff) | |
download | pdfium-ea3a2529a7aa0199b385b7caa2e465c124eac8aa.tar.xz |
Replace some c-style cast with static_cast<>
Change-Id: I9dd6a36770f77f3df6c4395572785d37402eadc2
Reviewed-on: https://pdfium-review.googlesource.com/31350
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fpdfsdk/pwl')
-rw-r--r-- | fpdfsdk/pwl/cpwl_combo_box.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fpdfsdk/pwl/cpwl_combo_box.cpp b/fpdfsdk/pwl/cpwl_combo_box.cpp index 2e6e56c52b..a69dd7418f 100644 --- a/fpdfsdk/pwl/cpwl_combo_box.cpp +++ b/fpdfsdk/pwl/cpwl_combo_box.cpp @@ -88,7 +88,7 @@ bool CPWL_CBListBox::IsChar(uint16_t nChar, uint32_t nFlag) const { } bool CPWL_CBListBox::OnCharNotify(uint16_t nChar, uint32_t nFlag) { - if (CPWL_ComboBox* pComboBox = (CPWL_ComboBox*)GetParentWindow()) + if (auto* pComboBox = static_cast<CPWL_ComboBox*>(GetParentWindow())) pComboBox->SetSelectText(); return OnNotifySelectionChanged(true, nFlag); @@ -99,7 +99,6 @@ void CPWL_CBButton::DrawThisAppearance(CFX_RenderDevice* pDevice, CPWL_Wnd::DrawThisAppearance(pDevice, mtUser2Device); CFX_FloatRect rectWnd = CPWL_Wnd::GetWindowRect(); - if (!IsVisible() || rectWnd.IsEmpty()) return; |