(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:
Vadim Zeitlin 2005-02-15 12:16:33 +00:00
parent 853fab0276
commit d2fde247b6
2 changed files with 9 additions and 3 deletions

View File

@ -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;
};
// ----------------------------------------------------------------------------

View File

@ -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;