X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fc12b1f12a26bfa569bbfe2af10af3e5352b6fd4..cc510e136407469a053f3d01b83c1f8a2783e1e6:/include/wx/generic/choicdgg.h diff --git a/include/wx/generic/choicdgg.h b/include/wx/generic/choicdgg.h index 230757b01f..39ac21ef33 100644 --- a/include/wx/generic/choicdgg.h +++ b/include/wx/generic/choicdgg.h @@ -143,7 +143,7 @@ public: void SetSelection(int sel); int GetSelection() const { return m_selection; } wxString GetStringSelection() const { return m_stringSelection; } - void* GetSelectionData() { return m_clientData; } + void* GetSelectionData() const { return m_clientData; } #if WXWIN_COMPATIBILITY_2_8 // Deprecated overloads taking "char**" client data. @@ -208,8 +208,8 @@ public: // NB: no need to make it return wxChar, it's untyped wxDEPRECATED_ACCESSOR ( - char* GetSelectionClientData(), - (char*)GetClientData() + char* GetSelectionClientData() const, + (char*)GetSelectionData() ) #endif // WXWIN_COMPATIBILITY_2_8