(blind) fix for virtual function hiding warning
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32072 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
853fab0276
commit
d2fde247b6
@ -59,6 +59,10 @@ public:
|
||||
virtual bool CanUndo() const = 0;
|
||||
virtual bool CanRedo() const = 0;
|
||||
|
||||
|
||||
// redeclare inherited SetSelection() overload here as well to avoid
|
||||
// virtual function hiding
|
||||
virtual void SetSelection(int n) = 0;
|
||||
};
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
@ -122,13 +122,15 @@ public:
|
||||
virtual ~wxComboListBox();
|
||||
|
||||
// implement wxComboPopup methods
|
||||
virtual bool SetSelection(const wxString& value);
|
||||
virtual void SetSelection(int n, bool select)
|
||||
{ wxListBox::SetSelection( n, select); };
|
||||
virtual bool SetSelection(const wxString& s);
|
||||
virtual wxControl *GetControl() { return this; }
|
||||
virtual void OnShow();
|
||||
virtual wxCoord GetBestWidth() const;
|
||||
|
||||
// fix virtual function hiding
|
||||
virtual void SetSelection(int n) { DoSetSelection(n, true); }
|
||||
void SetSelection(int n, bool select) { DoSetSelection(n, select); }
|
||||
|
||||
protected:
|
||||
// we shouldn't return height too big from here
|
||||
virtual wxSize DoGetBestClientSize() const;
|
||||
|
Loading…
Reference in New Issue
Block a user