Take void** client data in wxSingleChoiceDialog ctor and not char**.

The client data is supposed to be untyped, there is really no reason (other
than compatibility with C conventions of 40 years ago) to use char** here.
So don't do it and provide the versions taking "void**" keeping "char**" ones
for backwards compatibility only.

Also deprecate GetSelectionClientData() that returned char* and add a new
GetSelectionData() returning void* instead.

Closes #13876.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2012-02-05 14:18:33 +00:00
parent 0c6dff0370
commit fc12b1f12a
5 changed files with 103 additions and 39 deletions

View File

@@ -344,6 +344,11 @@ Changes in behaviour which may result in compilation errors
- wxComboBox::IsEmpty(), which was previously available in some ports (but not
wxMSW), doesn't exist any more, use either IsListEmpty() or IsTextEmpty().
- wxSingleChoiceDialog ctors and Create() now have 2 overloaded versions: one
taking void** client data and the deprecated one taking char**. This can
result in compilation errors due to an ambiguity between them if you pass
NULL as client data. To fix this, cast NULL explicitly to "void**".
Deprecated methods and their replacements
-----------------------------------------
@@ -412,6 +417,11 @@ Deprecated methods and their replacements
- Second parameter of wxSlider::SetTickFreq(int n, int pos) is deprecated,
simply remove it from your code and use wxSlider::SetTickFreq(int n) as it
was never used anyhow.
- wxSingleChoiceDialog ctor and Create() take "void**" client data pointer
instead of "char**". As the client data is typically untyped, you should
simply remove the casts to "char**" which you probably have in your code if
you use these functions.
Major new features in this release
----------------------------------