No changes, just refactor wxListBox initialization in wxMSW.
Extract member fields initialization in Init() method instead of duplicating it in default ctor and Create(). git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64497 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -149,8 +149,7 @@ wxOwnerDrawn *wxListBox::CreateLboxItem(size_t WXUNUSED(n))
|
||||
// creation
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// Listbox item
|
||||
wxListBox::wxListBox()
|
||||
void wxListBox::Init()
|
||||
{
|
||||
m_noItems = 0;
|
||||
m_updateHorizontalExtent = false;
|
||||
@@ -165,9 +164,6 @@ bool wxListBox::Create(wxWindow *parent,
|
||||
const wxValidator& validator,
|
||||
const wxString& name)
|
||||
{
|
||||
m_noItems = 0;
|
||||
m_updateHorizontalExtent = false;
|
||||
|
||||
// initialize base class fields
|
||||
if ( !CreateControl(parent, id, pos, size, style, validator, name) )
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user