From bfe35776254b50981742c789c73aff0af03e6de2 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Thu, 2 Oct 2003 16:51:36 +0000 Subject: [PATCH] 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 --- include/wx/gtk/scrolwin.h | 2 +- include/wx/gtk1/scrolwin.h | 2 +- src/gtk/scrolwin.cpp | 2 +- src/gtk1/scrolwin.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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; } -- 2.45.2