made FindWindow() member functions const (this makes it possible to use XRCCTRL() in const methods)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31290 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1226,7 +1226,7 @@ void wxWindowBase::ClearBackground()
|
||||
// find child window by id or name
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
wxWindow *wxWindowBase::FindWindow( long id )
|
||||
wxWindow *wxWindowBase::FindWindow(long id) const
|
||||
{
|
||||
if ( id == m_windowId )
|
||||
return (wxWindow *)this;
|
||||
@@ -1242,7 +1242,7 @@ wxWindow *wxWindowBase::FindWindow( long id )
|
||||
return (wxWindow *)res;
|
||||
}
|
||||
|
||||
wxWindow *wxWindowBase::FindWindow( const wxString& name )
|
||||
wxWindow *wxWindowBase::FindWindow(const wxString& name) const
|
||||
{
|
||||
if ( name == m_windowName )
|
||||
return (wxWindow *)this;
|
||||
|
Reference in New Issue
Block a user