From 33c03005b8872b11f07afaba49e874f918aaa333 Mon Sep 17 00:00:00 2001 From: Lei Zhang Date: Tue, 15 Aug 2017 11:18:19 -0700 Subject: Remove default argument from CPWL_Wnd::InvalidateRect(). Change-Id: I529925b10fa43d4c9c6c9d398265d2ae7eccf93d Reviewed-on: https://pdfium-review.googlesource.com/10853 Commit-Queue: Lei Zhang Reviewed-by: dsinclair --- fpdfsdk/pwl/cpwl_caret.cpp | 2 +- fpdfsdk/pwl/cpwl_caret.h | 2 +- fpdfsdk/pwl/cpwl_edit.cpp | 2 +- fpdfsdk/pwl/cpwl_edit_ctrl.cpp | 2 +- fpdfsdk/pwl/cpwl_scroll_bar.cpp | 4 ++-- fpdfsdk/pwl/cpwl_wnd.cpp | 2 +- fpdfsdk/pwl/cpwl_wnd.h | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/fpdfsdk/pwl/cpwl_caret.cpp b/fpdfsdk/pwl/cpwl_caret.cpp index d309d2743b..65c0fc56c7 100644 --- a/fpdfsdk/pwl/cpwl_caret.cpp +++ b/fpdfsdk/pwl/cpwl_caret.cpp @@ -58,7 +58,7 @@ void CPWL_Caret::TimerProc() { m_nDelay--; } else { m_bFlash = !m_bFlash; - InvalidateRect(); + InvalidateRect(nullptr); } } diff --git a/fpdfsdk/pwl/cpwl_caret.h b/fpdfsdk/pwl/cpwl_caret.h index a8ae5a3b74..5bba6fe9b1 100644 --- a/fpdfsdk/pwl/cpwl_caret.h +++ b/fpdfsdk/pwl/cpwl_caret.h @@ -18,7 +18,7 @@ class CPWL_Caret : public CPWL_Wnd { CFX_ByteString GetClassName() const override; void DrawThisAppearance(CFX_RenderDevice* pDevice, CFX_Matrix* pUser2Device) override; - void InvalidateRect(CFX_FloatRect* pRect = nullptr) override; + void InvalidateRect(CFX_FloatRect* pRect) override; void SetVisible(bool bVisible) override {} void TimerProc() override; diff --git a/fpdfsdk/pwl/cpwl_edit.cpp b/fpdfsdk/pwl/cpwl_edit.cpp index 438b0ac3c0..d01e3f147d 100644 --- a/fpdfsdk/pwl/cpwl_edit.cpp +++ b/fpdfsdk/pwl/cpwl_edit.cpp @@ -291,7 +291,7 @@ bool CPWL_Edit::OnLButtonDown(const CFX_PointF& point, uint32_t nFlag) { if (HasFlag(PES_TEXTOVERFLOW) || ClientHitTest(point)) { if (m_bMouseDown) - InvalidateRect(); + InvalidateRect(nullptr); m_bMouseDown = true; SetCapture(); diff --git a/fpdfsdk/pwl/cpwl_edit_ctrl.cpp b/fpdfsdk/pwl/cpwl_edit_ctrl.cpp index 1a7b0e4c49..3a79e0a1a8 100644 --- a/fpdfsdk/pwl/cpwl_edit_ctrl.cpp +++ b/fpdfsdk/pwl/cpwl_edit_ctrl.cpp @@ -265,7 +265,7 @@ bool CPWL_EditCtrl::OnLButtonDown(const CFX_PointF& point, uint32_t nFlag) { if (ClientHitTest(point)) { if (m_bMouseDown) - InvalidateRect(); + InvalidateRect(nullptr); m_bMouseDown = true; SetCapture(); diff --git a/fpdfsdk/pwl/cpwl_scroll_bar.cpp b/fpdfsdk/pwl/cpwl_scroll_bar.cpp index 19e4bc8b5f..142988a815 100644 --- a/fpdfsdk/pwl/cpwl_scroll_bar.cpp +++ b/fpdfsdk/pwl/cpwl_scroll_bar.cpp @@ -428,7 +428,7 @@ bool CPWL_ScrollBar::OnLButtonDown(const CFX_PointF& point, uint32_t nFlag) { if (HasFlag(PWS_AUTOTRANSPARENT)) { if (GetTransparency() != 255) { SetTransparency(255); - InvalidateRect(); + InvalidateRect(nullptr); } } @@ -479,7 +479,7 @@ bool CPWL_ScrollBar::OnLButtonUp(const CFX_PointF& point, uint32_t nFlag) { if (HasFlag(PWS_AUTOTRANSPARENT)) { if (GetTransparency() != PWL_SCROLLBAR_TRANSPARENCY) { SetTransparency(PWL_SCROLLBAR_TRANSPARENCY); - InvalidateRect(); + InvalidateRect(nullptr); } } diff --git a/fpdfsdk/pwl/cpwl_wnd.cpp b/fpdfsdk/pwl/cpwl_wnd.cpp index c7bf23ce60..37d0bc4cf2 100644 --- a/fpdfsdk/pwl/cpwl_wnd.cpp +++ b/fpdfsdk/pwl/cpwl_wnd.cpp @@ -584,7 +584,7 @@ void CPWL_Wnd::SetVisible(bool bVisible) { if (bVisible != m_bVisible) { m_bVisible = bVisible; RePosChildWnd(); - InvalidateRect(); + InvalidateRect(nullptr); } } diff --git a/fpdfsdk/pwl/cpwl_wnd.h b/fpdfsdk/pwl/cpwl_wnd.h index 15487a3c07..78edaa26e5 100644 --- a/fpdfsdk/pwl/cpwl_wnd.h +++ b/fpdfsdk/pwl/cpwl_wnd.h @@ -175,7 +175,7 @@ class CPWL_Wnd : public CPWL_TimerHandler, public CFX_Observable { ~CPWL_Wnd() override; virtual CFX_ByteString GetClassName() const; - virtual void InvalidateRect(CFX_FloatRect* pRect = nullptr); + virtual void InvalidateRect(CFX_FloatRect* pRect); virtual bool OnKeyDown(uint16_t nChar, uint32_t nFlag); virtual bool OnChar(uint16_t nChar, uint32_t nFlag); -- cgit v1.2.3