mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-09-25 00:43:39 +08:00
Make wxSizerItem::GetRect() const
There is really no reason for it not to be. There also doesn't seem to be any reason for it to be virtual, but keep this just to warn any people who override it in their code so that they could add "const".
This commit is contained in:
+1
-1
@@ -374,7 +374,7 @@ public:
|
||||
float GetRatio() const
|
||||
{ return m_ratio; }
|
||||
|
||||
virtual wxRect GetRect() { return m_rect; }
|
||||
virtual wxRect GetRect() const { return m_rect; }
|
||||
|
||||
// set a sizer item id (different from a window id, all sizer items,
|
||||
// including spacers, can have an associated id)
|
||||
|
||||
@@ -1306,7 +1306,7 @@ public:
|
||||
/**
|
||||
Get the rectangle of the item on the parent window, excluding borders.
|
||||
*/
|
||||
virtual wxRect GetRect();
|
||||
virtual wxRect GetRect() const;
|
||||
|
||||
/**
|
||||
Get the current size of the item, as set in the last Layout.
|
||||
|
||||
Reference in New Issue
Block a user