From 20a1eea1fd93719fecec5fc44a408b0fc4e3cf33 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 24 Feb 2002 00:17:23 +0000 Subject: [PATCH] made AdjustForParentClientOrigin const git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/window.h | 2 +- src/common/wincmn.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/window.h b/include/wx/window.h index d5fc672391..e431b9c83a 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -965,7 +965,7 @@ protected: // Makes an adjustment to the window position (for example, a frame that has // a toolbar that it manages itself). - virtual void AdjustForParentClientOrigin(int& x, int& y, int sizeFlags); + virtual void AdjustForParentClientOrigin(int& x, int& y, int sizeFlags) const; private: diff --git a/src/common/wincmn.cpp b/src/common/wincmn.cpp index 453f9b90d5..8e3d5e4634 100644 --- a/src/common/wincmn.cpp +++ b/src/common/wincmn.cpp @@ -1451,7 +1451,7 @@ void wxWindowBase::GetPositionConstraint(int *x, int *y) const #endif // wxUSE_CONSTRAINTS -void wxWindowBase::AdjustForParentClientOrigin(int& x, int& y, int sizeFlags) +void wxWindowBase::AdjustForParentClientOrigin(int& x, int& y, int sizeFlags) const { // don't do it for the dialogs/frames - they float independently of their // parent -- 2.45.2