const added to GetBitmap it was my fault.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Denis Pershin
1998-09-25 04:03:41 +00:00
parent f51f94ea2e
commit d069d02e1e
2 changed files with 2 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ class wxImageList: public wxObject
bool Create();
int GetImageCount() const;
int Add( const wxBitmap &bitmap );
wxBitmap *GetBitmap(int index);
const wxBitmap *GetBitmap(int index) const;
bool Replace( int index, const wxBitmap &bitmap );
bool Remove( int index );
bool RemoveAll();

View File

@@ -48,7 +48,7 @@ int wxImageList::Add( const wxBitmap &bitmap )
return m_images.Number();
}
wxBitmap *wxImageList::GetBitmap(int index) {
const wxBitmap *wxImageList::GetBitmap(int index) const {
wxNode *node = m_images.Nth(index);
if (node != NULL)
return (wxBitmap*)node->Data();