]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/ownerdrw.h
no message
[wxWidgets.git] / include / wx / ownerdrw.h
index 050d8d99868b3b05357e2d04f1dcb87c05f1a26d..7726a31f1ea0d58a1778badf57a361b282521240 100644 (file)
@@ -59,8 +59,8 @@ public:
     m_bmpUnchecked = bmpUnchecked; 
     m_bOwnerDrawn = TRUE;          }
 
     m_bmpUnchecked = bmpUnchecked; 
     m_bOwnerDrawn = TRUE;          }
 
-  inline wxBitmap& GetBitmap(bool bChecked = TRUE) const
-  { return (wxBitmap &)(bChecked ? m_bmpChecked : m_bmpUnchecked); }
+  inline const wxBitmap& GetBitmap(bool bChecked = TRUE) const
+  { return (bChecked ? m_bmpChecked : m_bmpUnchecked); }
 
   // the height of the menu checkmark (or bitmap) is determined by the font
   // for the current item, but the width should be always the same (for the
 
   // the height of the menu checkmark (or bitmap) is determined by the font
   // for the current item, but the width should be always the same (for the
@@ -132,4 +132,5 @@ private:
             m_nMarginWidth; // space occupied by bitmap to the left of the item
 };
 
             m_nMarginWidth; // space occupied by bitmap to the left of the item
 };
 
-#endif  //_OWNERDRW_H
\ No newline at end of file
+#endif
+  // _OWNERDRW_H