Remove unnecessary SetAutoLayout(true) calls

There is no need to call SetAutoLayout() explicitly after (or just
before) calling SetSizer() with a valid sizer pointer, as SetSizer()
already enables automatic layout, so just drop the useless calls.

No real changes.
This commit is contained in:
Vadim Zeitlin
2022-02-19 15:08:12 +01:00
parent d4909ffd07
commit a83fff2902
12 changed files with 0 additions and 14 deletions

View File

@@ -74,7 +74,6 @@ bool wxHtmlHelpDialog::Create(wxWindow* parent, wxWindowID id,
wxWindow* item1 = this;
wxBoxSizer* item2 = new wxBoxSizer(wxVERTICAL);
item1->SetSizer(item2);
item1->SetAutoLayout(true);
wxWindow* item3 = m_HtmlHelpWin;
item2->Add(item3, 1, wxGROW|wxALL, 5);

View File

@@ -326,7 +326,6 @@ bool wxHtmlHelpWindow::Create(wxWindow* parent, wxWindowID id,
// The sizer for the whole top-level window.
wxSizer *topWindowSizer = new wxBoxSizer(wxVERTICAL);
SetSizer(topWindowSizer);
SetAutoLayout(true);
#if wxUSE_TOOLBAR
// toolbar?