]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed GetIcon to keep up with return type change on all other platforms.
authorStefan Neis <Stefan.Neis@t-online.de>
Sun, 25 Dec 2005 14:37:51 +0000 (14:37 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Sun, 25 Dec 2005 14:37:51 +0000 (14:37 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@36567 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/os2/statbmp.h

index 445b9589de46da6bb6ca7b1ca984200488944bf2..302814742995a29c0c162222c8c9c78895887c3d 100644 (file)
@@ -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; }