Make ConvertPixelsToDialog() and ConvertDialogToPixels() const.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2010-01-19 17:53:29 +00:00
parent e27619029d
commit 0e7f59ab29
3 changed files with 10 additions and 10 deletions

View File

@@ -2461,7 +2461,7 @@ void wxWindowBase::DoUpdateWindowUI(wxUpdateUIEvent& event)
// dialog units translations
// ----------------------------------------------------------------------------
wxPoint wxWindowBase::ConvertPixelsToDialog(const wxPoint& pt)
wxPoint wxWindowBase::ConvertPixelsToDialog(const wxPoint& pt) const
{
wxPoint pt2 = wxDefaultPosition;
if (pt.x != wxDefaultCoord)
@@ -2472,7 +2472,7 @@ wxPoint wxWindowBase::ConvertPixelsToDialog(const wxPoint& pt)
return pt2;
}
wxPoint wxWindowBase::ConvertDialogToPixels(const wxPoint& pt)
wxPoint wxWindowBase::ConvertDialogToPixels(const wxPoint& pt) const
{
wxPoint pt2 = wxDefaultPosition;
if (pt.x != wxDefaultCoord)