X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9a199c6a6372374c49071197870324b6fbf5094..e6b2aae1b84f4818f1b2b30f5d15bdde0fa67408:/include/wx/generic/grid.h diff --git a/include/wx/generic/grid.h b/include/wx/generic/grid.h index 92d216bb7f..f2404fcd9d 100644 --- a/include/wx/generic/grid.h +++ b/include/wx/generic/grid.h @@ -549,39 +549,15 @@ public: // get renderers for the given row/column header label and the corner // window: unlike cell renderers, these objects are not reference counted // and are never NULL so they are returned by reference - virtual const wxGridColumnHeaderRenderer& - GetColumnHeaderRenderer(int WXUNUSED(col)) - { - return m_defaultHeaderRenderers.colRenderer; - } - - virtual const wxGridRowHeaderRenderer& - GetRowHeaderRenderer(int WXUNUSED(row)) - { - return m_defaultHeaderRenderers.rowRenderer; - } - - virtual const wxGridCornerHeaderRenderer& GetCornerRenderer() - { - return m_defaultHeaderRenderers.cornerRenderer; - } + virtual const wxGridColumnHeaderRenderer& GetColumnHeaderRenderer(int col); + virtual const wxGridRowHeaderRenderer& GetRowHeaderRenderer(int row); + virtual const wxGridCornerHeaderRenderer& GetCornerRenderer(); private: void InitData(); wxGridCellAttrProviderData *m_data; - // this struct simply combines together the default header renderers - // - // FIXME-VC6: this struct must be named because of VC6 bug, it fails - // with error C2639 on this struct declaration without it - struct - { - wxGridColumnHeaderRendererDefault colRenderer; - wxGridRowHeaderRendererDefault rowRenderer; - wxGridCornerHeaderRendererDefault cornerRenderer; - } m_defaultHeaderRenderers; - wxDECLARE_NO_COPY_CLASS(wxGridCellAttrProvider); };