From 31e08d1d6db10d22c1ba9f3f68773f8a88f05e3b Mon Sep 17 00:00:00 2001 From: Henrique Nakashima Date: Mon, 5 Mar 2018 18:25:00 +0000 Subject: Cleanup CFWL_ScrollBar::Timer::Run. Change-Id: Icd76a6a98a66c977e45ed82663b68f6b05479e76 Reviewed-on: https://pdfium-review.googlesource.com/27891 Reviewed-by: dsinclair Commit-Queue: Henrique Nakashima --- xfa/fwl/cfwl_scrollbar.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/xfa/fwl/cfwl_scrollbar.cpp b/xfa/fwl/cfwl_scrollbar.cpp index a65d04e1a4..26c367a831 100644 --- a/xfa/fwl/cfwl_scrollbar.cpp +++ b/xfa/fwl/cfwl_scrollbar.cpp @@ -486,10 +486,10 @@ void CFWL_ScrollBar::DoMouseHover(int32_t iItem, CFWL_ScrollBar::Timer::Timer(CFWL_ScrollBar* pToolTip) : CFWL_Timer(pToolTip) {} void CFWL_ScrollBar::Timer::Run(CFWL_TimerInfo* pTimerInfo) { - CFWL_ScrollBar* pButton = static_cast(m_pWidget.Get()); - if (pButton->m_pTimerInfo) - pButton->m_pTimerInfo->StopTimer(); + CFWL_ScrollBar* pScrollBar = static_cast(m_pWidget.Get()); + if (pScrollBar->m_pTimerInfo) + pScrollBar->m_pTimerInfo->StopTimer(); - if (!pButton->SendEvent()) - pButton->m_pTimerInfo = StartTimer(0, true); + if (!pScrollBar->SendEvent()) + pScrollBar->m_pTimerInfo = StartTimer(0, true); } -- cgit v1.2.3