don't overload SizeInM{aj,in}orDir() on const/non-const, VC6 has troubles with this as does DMC, so use different names
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50638 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -814,7 +814,7 @@ public:
|
||||
protected:
|
||||
// helpers for our code: this returns the component of the given wxSize in
|
||||
// the direction of the sizer and in the other direction, respectively
|
||||
int SizeInMajorDir(const wxSize& sz) const
|
||||
int GetSizeInMajorDir(const wxSize& sz) const
|
||||
{
|
||||
return m_orient == wxHORIZONTAL ? sz.x : sz.y;
|
||||
}
|
||||
@@ -829,7 +829,7 @@ protected:
|
||||
return m_orient == wxHORIZONTAL ? pt.x : pt.y;
|
||||
}
|
||||
|
||||
int SizeInMinorDir(const wxSize& sz) const
|
||||
int GetSizeInMinorDir(const wxSize& sz) const
|
||||
{
|
||||
return m_orient == wxHORIZONTAL ? sz.y : sz.x;
|
||||
}
|
||||
|
Reference in New Issue
Block a user