Deprecate useless wxGenericImageList::Create() overload
This overload doesn't do anything and doesn't exist in the MSW version, so deprecate it.
This commit is contained in:
@@ -25,7 +25,6 @@ public:
|
|||||||
wxGenericImageList( int width, int height, bool mask = true, int initialCount = 1 );
|
wxGenericImageList( int width, int height, bool mask = true, int initialCount = 1 );
|
||||||
virtual ~wxGenericImageList();
|
virtual ~wxGenericImageList();
|
||||||
bool Create( int width, int height, bool mask = true, int initialCount = 1 );
|
bool Create( int width, int height, bool mask = true, int initialCount = 1 );
|
||||||
bool Create();
|
|
||||||
|
|
||||||
virtual int GetImageCount() const;
|
virtual int GetImageCount() const;
|
||||||
virtual bool GetSize( int index, int &width, int &height ) const;
|
virtual bool GetSize( int index, int &width, int &height ) const;
|
||||||
@@ -45,6 +44,11 @@ public:
|
|||||||
int flags = wxIMAGELIST_DRAW_NORMAL,
|
int flags = wxIMAGELIST_DRAW_NORMAL,
|
||||||
bool solidBackground = false);
|
bool solidBackground = false);
|
||||||
|
|
||||||
|
#if WXWIN_COMPATIBILITY_3_0
|
||||||
|
wxDEPRECATED_MSG("Don't use this overload: it's not portable and does nothing")
|
||||||
|
bool Create() { return true; }
|
||||||
|
#endif // WXWIN_COMPATIBILITY_3_0
|
||||||
|
|
||||||
// Internal use only
|
// Internal use only
|
||||||
const wxBitmap *GetBitmapPtr(int index) const;
|
const wxBitmap *GetBitmapPtr(int index) const;
|
||||||
private:
|
private:
|
||||||
|
@@ -49,11 +49,6 @@ bool wxGenericImageList::Create( int width, int height, bool WXUNUSED(mask), int
|
|||||||
{
|
{
|
||||||
m_size = wxSize(width, height);
|
m_size = wxSize(width, height);
|
||||||
|
|
||||||
return Create();
|
|
||||||
}
|
|
||||||
|
|
||||||
bool wxGenericImageList::Create()
|
|
||||||
{
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user