Call Add(), not Set(), from wxPGChoices ctors
There is no need to call Free() on a newly constructed object and Set() is just Free() followed by Add(). No real changes.
This commit is contained in:
@@ -724,7 +724,7 @@ public:
|
|||||||
wxPGChoices( const wxChar* const* labels, const long* values = NULL )
|
wxPGChoices( const wxChar* const* labels, const long* values = NULL )
|
||||||
{
|
{
|
||||||
Init();
|
Init();
|
||||||
Set(labels,values);
|
Add(labels,values);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Constructor.
|
// Constructor.
|
||||||
@@ -734,7 +734,7 @@ public:
|
|||||||
const wxArrayInt& values = wxArrayInt() )
|
const wxArrayInt& values = wxArrayInt() )
|
||||||
{
|
{
|
||||||
Init();
|
Init();
|
||||||
Set(labels,values);
|
Add(labels,values);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Simple interface constructor.
|
// Simple interface constructor.
|
||||||
|
Reference in New Issue
Block a user