]> git.saurik.com Git - wxWidgets.git/commitdiff
Make wxSingleChoiceDialog::GetSelectionData() const.
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 20 Feb 2012 21:56:18 +0000 (21:56 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 20 Feb 2012 21:56:18 +0000 (21:56 +0000)
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

include/wx/generic/choicdgg.h

index 230757b01f432465531120bd63eafc9dbc803b6b..39ac21ef33113c56dc1192c0aa3091e755e87946 100644 (file)
@@ -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