From: Stefan Neis Date: Sun, 25 Dec 2005 14:37:51 +0000 (+0000) Subject: Fixed GetIcon to keep up with return type change on all other platforms. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ea8ca011a351c6aaa4009bedbf0cec19a7c57d98 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 --- 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; }