From: Robin Dunn Date: Thu, 2 Oct 2003 16:51:36 +0000 (+0000) Subject: Added a const to be consistent with the generic class X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/bfe35776254b50981742c789c73aff0af03e6de2 Added a const to be consistent with the generic class git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/gtk/scrolwin.h b/include/wx/gtk/scrolwin.h index 5e86b9f26a..8209f2d61a 100644 --- a/include/wx/gtk/scrolwin.h +++ b/include/wx/gtk/scrolwin.h @@ -63,7 +63,7 @@ public: // the area between the scrollbars (spreadsheet: only cell area // will move). virtual void SetTargetWindow( wxWindow *target, bool pushEventHandler = FALSE ); - virtual wxWindow *GetTargetWindow(); + virtual wxWindow *GetTargetWindow() const; // Set the scrolled area of the window. virtual void DoSetVirtualSize( int x, int y ); diff --git a/include/wx/gtk1/scrolwin.h b/include/wx/gtk1/scrolwin.h index 5e86b9f26a..8209f2d61a 100644 --- a/include/wx/gtk1/scrolwin.h +++ b/include/wx/gtk1/scrolwin.h @@ -63,7 +63,7 @@ public: // the area between the scrollbars (spreadsheet: only cell area // will move). virtual void SetTargetWindow( wxWindow *target, bool pushEventHandler = FALSE ); - virtual wxWindow *GetTargetWindow(); + virtual wxWindow *GetTargetWindow() const; // Set the scrolled area of the window. virtual void DoSetVirtualSize( int x, int y ); diff --git a/src/gtk/scrolwin.cpp b/src/gtk/scrolwin.cpp index 9232d1e543..8a302f507b 100644 --- a/src/gtk/scrolwin.cpp +++ b/src/gtk/scrolwin.cpp @@ -442,7 +442,7 @@ void wxScrolledWindow::SetTargetWindow( wxWindow *target, bool WXUNUSED(pushEven m_targetWindow = target; } -wxWindow *wxScrolledWindow::GetTargetWindow() +wxWindow *wxScrolledWindow::GetTargetWindow() const { return m_targetWindow; } diff --git a/src/gtk1/scrolwin.cpp b/src/gtk1/scrolwin.cpp index 9232d1e543..8a302f507b 100644 --- a/src/gtk1/scrolwin.cpp +++ b/src/gtk1/scrolwin.cpp @@ -442,7 +442,7 @@ void wxScrolledWindow::SetTargetWindow( wxWindow *target, bool WXUNUSED(pushEven m_targetWindow = target; } -wxWindow *wxScrolledWindow::GetTargetWindow() +wxWindow *wxScrolledWindow::GetTargetWindow() const { return m_targetWindow; }