Deprecate wxGenericImageList::GetBitmapPtr()

This function was in effect deprecated since 2.5.5 (!) and it's not
finally time to do it formally and to stop using it in wxWidgets own
code.
This commit is contained in:
Vadim Zeitlin
2018-10-30 23:15:49 +01:00
parent 61e4534bd2
commit 3b5441f59e
6 changed files with 28 additions and 32 deletions

View File

@@ -47,11 +47,14 @@ public:
#if WXWIN_COMPATIBILITY_3_0
wxDEPRECATED_MSG("Don't use this overload: it's not portable and does nothing")
bool Create() { return true; }
wxDEPRECATED_MSG("Use GetBitmap() instead")
const wxBitmap *GetBitmapPtr(int index) const { return DoGetPtr(index); }
#endif // WXWIN_COMPATIBILITY_3_0
// Internal use only
const wxBitmap *GetBitmapPtr(int index) const;
private:
const wxBitmap *DoGetPtr(int index) const;
wxObjectList m_images;
// Size of a single bitmap in the list.