From: Václav Slavík Date: Sun, 24 Feb 2002 00:17:23 +0000 (+0000) Subject: made AdjustForParentClientOrigin const X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/20a1eea1fd93719fecec5fc44a408b0fc4e3cf33?hp=0ecf47c409f1cb4c034d50fcd47e6863070ae140 made AdjustForParentClientOrigin const git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14382 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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