Initialize wxGenericImageList members in default ctor

Don't leave m_useMask and m_scaleFactor uninitialized -- even if this
probably doesn't matter, call Create() to make sure they have
well-defined values for the default-constructed objects.
This commit is contained in:
Vadim Zeitlin
2021-10-17 01:00:19 +01:00
parent 6fb64da922
commit 6b3fd04e24
2 changed files with 6 additions and 1 deletions

View File

@@ -29,6 +29,11 @@
wxIMPLEMENT_DYNAMIC_CLASS(wxGenericImageList, wxObject);
wxIMPLEMENT_DYNAMIC_CLASS(wxImageList, wxGenericImageList);
wxGenericImageList::wxGenericImageList()
{
Create(0, 0, false);
}
wxGenericImageList::wxGenericImageList( int width, int height, bool mask, int initialCount )
{
(void)Create(width, height, mask, initialCount);