]> git.saurik.com Git - wxWidgets.git/commitdiff
Added a const to be consistent with the generic class
authorRobin Dunn <robin@alldunn.com>
Thu, 2 Oct 2003 16:51:36 +0000 (16:51 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 2 Oct 2003 16:51:36 +0000 (16:51 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gtk/scrolwin.h
include/wx/gtk1/scrolwin.h
src/gtk/scrolwin.cpp
src/gtk1/scrolwin.cpp

index 5e86b9f26a9ae1baafd93b57da69689ef19d8aeb..8209f2d61a44e6e6059bdc6acf234c4032b11742 100644 (file)
@@ -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 );
index 5e86b9f26a9ae1baafd93b57da69689ef19d8aeb..8209f2d61a44e6e6059bdc6acf234c4032b11742 100644 (file)
@@ -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 );
index 9232d1e5432b928784baa122a79ae55877cc9549..8a302f507b96a69e6bc7938ba801ae15b6379d9c 100644 (file)
@@ -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;
 }
index 9232d1e5432b928784baa122a79ae55877cc9549..8a302f507b96a69e6bc7938ba801ae15b6379d9c 100644 (file)
@@ -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;
 }