X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9f7aee01986653bfc0fe2e7ebf5a68cb12d7f0b1..44c87b7d15d5c1f5926beffa4cd5c9d1d2045e04:/include/wx/generic/grid.h diff --git a/include/wx/generic/grid.h b/include/wx/generic/grid.h index 546bf7ea26..075bd336fd 100644 --- a/include/wx/generic/grid.h +++ b/include/wx/generic/grid.h @@ -22,7 +22,7 @@ // constants // ---------------------------------------------------------------------------- -extern WXDLLIMPEXP_DATA_ADV(const wxChar) wxGridNameStr[]; +extern WXDLLIMPEXP_DATA_ADV(const char) wxGridNameStr[]; // Default parameters for wxGrid // @@ -913,9 +913,9 @@ public: // would break the existing code overriding them, so instead we provide // these const synonyms which can be used from const-correct code int GetRowsCount() const - { return wx_const_cast(wxGridTableBase *, this)->GetNumberRows(); } + { return const_cast(this)->GetNumberRows(); } int GetColsCount() const - { return wx_const_cast(wxGridTableBase *, this)->GetNumberCols(); } + { return const_cast(this)->GetNumberCols(); } virtual bool IsEmptyCell( int row, int col ) = 0; @@ -2326,7 +2326,9 @@ public: SetEventObject(obj); } - wxDEPRECATED( + // explicitly specifying inline allows gcc < 3.4 to + // handle the deprecation attribute even in the constructor. + wxDEPRECATED( inline wxGridEvent(int id, wxEventType type, wxObject* obj, @@ -2387,7 +2389,7 @@ public: SetEventObject(obj); } - wxDEPRECATED( + wxDEPRECATED( inline wxGridSizeEvent(int id, wxEventType type, wxObject* obj, @@ -2445,7 +2447,7 @@ public: SetEventObject(obj); } - wxDEPRECATED( + wxDEPRECATED( inline wxGridRangeSelectEvent(int id, wxEventType type, wxObject* obj,