summaryrefslogtreecommitdiff
path: root/fpdfsdk/pwl
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-08-10 23:43:26 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-08-10 23:43:26 +0000
commit6fdfe387645217cdd77e8e4230a0d8348d831e31 (patch)
tree5c7e9340f3ef0a7cefdff19733a0c9fcad311cb4 /fpdfsdk/pwl
parent8ba9749e2f39287137a96ec5ceff2ac694566f48 (diff)
downloadpdfium-6fdfe387645217cdd77e8e4230a0d8348d831e31.tar.xz
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 <tsepez@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk/pwl')
-rw-r--r--fpdfsdk/pwl/cpwl_font_map.h6
-rw-r--r--fpdfsdk/pwl/cpwl_scroll_bar.h2
-rw-r--r--fpdfsdk/pwl/cpwl_wnd.h1
3 files changed, 3 insertions, 6 deletions
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<std::unique_ptr<CPWL_FontMap_Native>> 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<CPWL_Wnd> {
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; }