diff options
author | Nico Weber <thakis@chromium.org> | 2014-07-30 14:17:19 -0700 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2014-07-30 14:17:19 -0700 |
commit | f1d18bbda1099d9423e09ba4714b3712c1b512d3 (patch) | |
tree | fbf7b4e497c72925263d7a7685b7b9c1c114fdec /fpdfsdk/include/pdfwindow/PWL_IconList.h | |
parent | fe08482976fb43cc93e4f8a3ea799d98dfe96ada (diff) | |
download | pdfium-f1d18bbda1099d9423e09ba4714b3712c1b512d3.tar.xz |
Attempt to fix some -Woverloaded-virtual warnings.
There are many warnings that look like:
error: 'CPWL_RadioButton::OnChar' hides overloaded virtual function [-Werror,-Woverloaded-virtual]
virtual FX_BOOL OnChar(FX_WORD nChar);
^
note: hidden overloaded virtual function 'CPWL_Wnd::OnChar' declared here: different number of parameters (2 vs 1)
virtual FX_BOOL OnChar(FX_WORD nChar, FX_DWORD nFlag);
^
It looks like someone added the nFlag parameter to the methods in CPWL_Wnd
at some point and missed to update all overloads This patch attempts to fix this:
It adds the parameter to all methods that look like they're trying to overload the base
class method, and renames the method in one case where it fairly clearly looks like
that it's not supposed to be an overload.
BUG=pdfium:29
R=bo_xu@foxitsoftware.com
Review URL: https://codereview.chromium.org/416383004
Diffstat (limited to 'fpdfsdk/include/pdfwindow/PWL_IconList.h')
-rw-r--r-- | fpdfsdk/include/pdfwindow/PWL_IconList.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fpdfsdk/include/pdfwindow/PWL_IconList.h b/fpdfsdk/include/pdfwindow/PWL_IconList.h index f0844485ee..effabd0713 100644 --- a/fpdfsdk/include/pdfwindow/PWL_IconList.h +++ b/fpdfsdk/include/pdfwindow/PWL_IconList.h @@ -72,10 +72,10 @@ public: protected: virtual void CreateChildWnd(const PWL_CREATEPARAM & cp); - virtual FX_BOOL OnLButtonDown(const CPDF_Point & point); - virtual FX_BOOL OnLButtonUp(const CPDF_Point & point); - virtual FX_BOOL OnMouseMove(const CPDF_Point & point); - virtual FX_BOOL OnKeyDown(FX_WORD nChar); + virtual FX_BOOL OnLButtonDown(const CPDF_Point & point, FX_DWORD nFlag); + virtual FX_BOOL OnLButtonUp(const CPDF_Point & point, FX_DWORD nFlag); + virtual FX_BOOL OnMouseMove(const CPDF_Point & point, FX_DWORD nFlag); + virtual FX_BOOL OnKeyDown(FX_WORD nChar, FX_DWORD nFlag); private: CPWL_IconList_Item* GetListItem(FX_INT32 nItemIndex) const; @@ -95,7 +95,7 @@ public: CPWL_IconList(FX_INT32 nListCount); virtual ~CPWL_IconList(); - virtual FX_BOOL OnMouseWheel(short zDelta, const CPDF_Point & point); + virtual FX_BOOL OnMouseWheel(short zDelta, const CPDF_Point & point, FX_DWORD nFlag); void SetSelect(FX_INT32 nIndex); void SetTopItem(FX_INT32 nIndex); |