From d069d02e1e27f6d924c3b28173ff81d87ec8b072 Mon Sep 17 00:00:00 2001 From: Denis Pershin Date: Fri, 25 Sep 1998 04:03:41 +0000 Subject: [PATCH] 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 --- include/wx/generic/imaglist.h | 2 +- src/generic/imaglist.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/wx/generic/imaglist.h b/include/wx/generic/imaglist.h index d13864cbbf..60f0c5d8e3 100644 --- a/include/wx/generic/imaglist.h +++ b/include/wx/generic/imaglist.h @@ -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(); diff --git a/src/generic/imaglist.cpp b/src/generic/imaglist.cpp index 543d019cdf..20a5101650 100644 --- a/src/generic/imaglist.cpp +++ b/src/generic/imaglist.cpp @@ -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(); -- 2.45.2