wxPoint/Size/Rect() causes the same code with (0,0) initialization and is incomparably more readable and clear.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32101 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -99,7 +99,7 @@ void wxSizerItem::Init()
|
||||
m_sizer = NULL;
|
||||
m_show = true;
|
||||
m_userData = NULL;
|
||||
m_zoneRect = wxRect();
|
||||
m_zoneRect = wxRect(0,0,0,0);
|
||||
}
|
||||
|
||||
void wxSizerItem::Init(const wxSizerFlags& flags)
|
||||
@@ -1851,7 +1851,7 @@ void wxBookCtrlSizer::RecalcSizes()
|
||||
|
||||
wxSize wxBookCtrlSizer::CalcMin()
|
||||
{
|
||||
wxSize sizeBorder = m_bookctrl->CalcSizeFromPage(wxSize());
|
||||
wxSize sizeBorder = m_bookctrl->CalcSizeFromPage(wxSize(0,0));
|
||||
|
||||
sizeBorder.x += 5;
|
||||
sizeBorder.y += 5;
|
||||
|
Reference in New Issue
Block a user