X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c0989defa045fb64e325fc7b37b4dd2c8f21a2d8..90daa6cd4addce8ca6ba3f30d1637cab5568208a:/contrib/include/wx/ogl/basic.h?ds=inline diff --git a/contrib/include/wx/ogl/basic.h b/contrib/include/wx/ogl/basic.h index 0360f19c9e..c0db18d8f4 100644 --- a/contrib/include/wx/ogl/basic.h +++ b/contrib/include/wx/ogl/basic.h @@ -329,8 +329,8 @@ class WXDLLIMPEXP_OGL wxShape: public wxShapeEvtHandler void AddText(const wxString& string); - inline const wxPen *GetPen() const { return m_pen; } - inline const wxBrush *GetBrush() const { return m_brush; } + inline wxPen *GetPen() const { return wx_const_cast(wxPen*, m_pen); } + inline wxBrush *GetBrush() const { return wx_const_cast(wxBrush*, m_brush); } /* * Region-specific functions (defaults to the default region