Make wxSingleChoiceDialog::GetSelectionData() const.
Also restore const-ness of GetSelectionClientData() lost in r70514. Closes #14001. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -143,7 +143,7 @@ public:
|
|||||||
void SetSelection(int sel);
|
void SetSelection(int sel);
|
||||||
int GetSelection() const { return m_selection; }
|
int GetSelection() const { return m_selection; }
|
||||||
wxString GetStringSelection() const { return m_stringSelection; }
|
wxString GetStringSelection() const { return m_stringSelection; }
|
||||||
void* GetSelectionData() { return m_clientData; }
|
void* GetSelectionData() const { return m_clientData; }
|
||||||
|
|
||||||
#if WXWIN_COMPATIBILITY_2_8
|
#if WXWIN_COMPATIBILITY_2_8
|
||||||
// Deprecated overloads taking "char**" client data.
|
// Deprecated overloads taking "char**" client data.
|
||||||
@@ -208,8 +208,8 @@ public:
|
|||||||
// NB: no need to make it return wxChar, it's untyped
|
// NB: no need to make it return wxChar, it's untyped
|
||||||
wxDEPRECATED_ACCESSOR
|
wxDEPRECATED_ACCESSOR
|
||||||
(
|
(
|
||||||
char* GetSelectionClientData(),
|
char* GetSelectionClientData() const,
|
||||||
(char*)GetClientData()
|
(char*)GetSelectionData()
|
||||||
)
|
)
|
||||||
#endif // WXWIN_COMPATIBILITY_2_8
|
#endif // WXWIN_COMPATIBILITY_2_8
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user