From 6fdfe387645217cdd77e8e4230a0d8348d831e31 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Fri, 10 Aug 2018 23:43:26 +0000 Subject: Kill some optional parameters that are always supplied. No need to even bring any .cpp files in line with these headers. Change-Id: I934169d77ae09adc11f02e5ea92b1f8b078c9477 Reviewed-on: https://pdfium-review.googlesource.com/39876 Commit-Queue: Tom Sepez Reviewed-by: Lei Zhang --- fpdfsdk/pwl/cpwl_font_map.h | 6 ++---- fpdfsdk/pwl/cpwl_scroll_bar.h | 2 +- fpdfsdk/pwl/cpwl_wnd.h | 1 - 3 files changed, 3 insertions(+), 6 deletions(-) (limited to 'fpdfsdk/pwl') diff --git a/fpdfsdk/pwl/cpwl_font_map.h b/fpdfsdk/pwl/cpwl_font_map.h index c465a0fc0c..159bd7ff56 100644 --- a/fpdfsdk/pwl/cpwl_font_map.h +++ b/fpdfsdk/pwl/cpwl_font_map.h @@ -61,7 +61,7 @@ class CPWL_FontMap : public IPVT_FontMap { bool bFind); int32_t AddFontData(CPDF_Font* pFont, const ByteString& sFontAlias, - int32_t nCharset = FX_CHARSET_Default); + int32_t nCharset); ByteString EncodeFontAlias(const ByteString& sFontName, int32_t nCharset); ByteString EncodeFontAlias(const ByteString& sFontName); @@ -70,9 +70,7 @@ class CPWL_FontMap : public IPVT_FontMap { std::vector> m_NativeFont; private: - int32_t FindFont(const ByteString& sFontName, - int32_t nCharset = FX_CHARSET_Default); - + int32_t FindFont(const ByteString& sFontName, int32_t nCharset); ByteString GetNativeFont(int32_t nCharset); CPDF_Font* AddFontToDocument(CPDF_Document* pDoc, ByteString& sFontName, diff --git a/fpdfsdk/pwl/cpwl_scroll_bar.h b/fpdfsdk/pwl/cpwl_scroll_bar.h index 69217323ff..1437597fbe 100644 --- a/fpdfsdk/pwl/cpwl_scroll_bar.h +++ b/fpdfsdk/pwl/cpwl_scroll_bar.h @@ -117,7 +117,7 @@ struct PWL_SCROLL_PRIVATEDATA { class CPWL_ScrollBar : public CPWL_Wnd { public: - explicit CPWL_ScrollBar(PWL_SCROLLBAR_TYPE sbType = SBT_HSCROLL); + explicit CPWL_ScrollBar(PWL_SCROLLBAR_TYPE sbType); ~CPWL_ScrollBar() override; // CPWL_Wnd: diff --git a/fpdfsdk/pwl/cpwl_wnd.h b/fpdfsdk/pwl/cpwl_wnd.h index a24635fa1f..cb6e8cfc64 100644 --- a/fpdfsdk/pwl/cpwl_wnd.h +++ b/fpdfsdk/pwl/cpwl_wnd.h @@ -275,7 +275,6 @@ class CPWL_Wnd : public CPWL_TimerHandler, public Observable { virtual void OnCreated(); virtual void OnDestroy(); - void SetNotifyFlag(bool bNotifying = true) { m_bNotifying = bNotifying; } bool IsNotifying() const { return m_bNotifying; } bool IsValid() const { return m_bCreated; } const CreateParams& GetCreationParams() const { return m_CreationParams; } -- cgit v1.2.3