]> git.saurik.com Git - wxWidgets.git/commitdiff
const added to GetBitmap it was my fault.
authorDenis Pershin <dyp@inetlab.com>
Fri, 25 Sep 1998 04:03:41 +0000 (04:03 +0000)
committerDenis Pershin <dyp@inetlab.com>
Fri, 25 Sep 1998 04:03:41 +0000 (04:03 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@773 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/imaglist.h
src/generic/imaglist.cpp

index d13864cbbf914f2f1af7334de8717012630fc971..60f0c5d8e306fe182dbfbe9a853a3daf8441b6c0 100644 (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();
index 543d019cdf655328c5034c5bc6abec646d401096..20a5101650ff4c1e86298536a1dd89d8b06ec40d 100644 (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();