diff --git a/include/wx/os2/window.h b/include/wx/os2/window.h index 70474ba32a..4aeb845c43 100644 --- a/include/wx/os2/window.h +++ b/include/wx/os2/window.h @@ -85,7 +85,7 @@ public: virtual void DoEnable(bool bEnable); virtual void SetFocus(void); virtual void SetFocusFromKbd(void); - virtual bool Reparent(wxWindow* pNewParent); + virtual bool Reparent(wxWindowBase* pNewParent); virtual void WarpPointer( int x ,int y ); @@ -536,12 +536,6 @@ private: DECLARE_DYNAMIC_CLASS(wxWindowOS2); DECLARE_NO_COPY_CLASS(wxWindowOS2) DECLARE_EVENT_TABLE() - - // - // Virtual function hiding supression - // - inline virtual bool Reparent(wxWindowBase* pNewParent) - { return(wxWindowBase::Reparent(pNewParent));} }; // end of wxWindow class wxWindowCreationHook diff --git a/src/os2/window.cpp b/src/os2/window.cpp index 4a631a8452..444a0756c2 100644 --- a/src/os2/window.cpp +++ b/src/os2/window.cpp @@ -1094,7 +1094,7 @@ void wxWindowOS2::OnIdle( // // Set this window to be the child of 'parent'. // -bool wxWindowOS2::Reparent( wxWindow* pParent) +bool wxWindowOS2::Reparent( wxWindowBase* pParent) { if (!wxWindowBase::Reparent(pParent)) return false;