From ea8ca011a351c6aaa4009bedbf0cec19a7c57d98 Mon Sep 17 00:00:00 2001 From: Stefan Neis Date: Sun, 25 Dec 2005 14:37:51 +0000 Subject: [PATCH] Fixed GetIcon to keep up with return type change on all other platforms. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/os2/statbmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/wx/os2/statbmp.h b/include/wx/os2/statbmp.h index 445b9589de..3028147429 100644 --- a/include/wx/os2/statbmp.h +++ b/include/wx/os2/statbmp.h @@ -47,7 +47,7 @@ class WXDLLEXPORT wxStaticBitmap : public wxStaticBitmapBase // assert failure is provoked by an attempt to get an icon from bitmap or // vice versa - const wxIcon& GetIcon() const + wxIcon GetIcon() const { wxASSERT( m_bIsIcon ); return *(wxIcon *)m_pImage; } wxBitmap GetBitmap() const { wxASSERT( !m_bIsIcon ); return *(wxBitmap *)m_pImage; } -- 2.50.0