]> git.saurik.com Git - wxWidgets.git/commitdiff
Someone need to make the clientdata be void* instead of this char*
authorOve Kaaven <ovek@arcticnet.no>
Fri, 23 Jul 1999 09:43:48 +0000 (09:43 +0000)
committerOve Kaaven <ovek@arcticnet.no>
Fri, 23 Jul 1999 09:43:48 +0000 (09:43 +0000)
mess

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3097 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/choicdgg.cpp

index 0ff03ba0b005f262e934298343eb518bebb54033..017151f3633208c2031a7e01ca68a7adbe3514a9 100644 (file)
@@ -100,9 +100,9 @@ wxChar *wxGetSingleChoiceData( const wxString& message, const wxString& caption,
                    int WXUNUSED(x), int WXUNUSED(y), bool WXUNUSED(centre),
                    int WXUNUSED(width), int WXUNUSED(height) )
 {
-    wxSingleChoiceDialog dialog(parent, message, caption, n, choices, client_data);
+    wxSingleChoiceDialog dialog(parent, message, caption, n, choices, (char **)client_data);
     if ( dialog.ShowModal() == wxID_OK )
-        return dialog.GetSelectionClientData();
+        return (wxChar *)dialog.GetSelectionClientData();
     else
         return NULL;
 }
@@ -186,7 +186,7 @@ wxSingleChoiceDialog::wxSingleChoiceDialog(wxWindow *parent,
                                            const wxString& message,
                                            const wxString& caption,
                                            const wxStringList& choices,
-                                           wxChar **clientData,
+                                           char **clientData,
                                            long style,
                                            const wxPoint& pos)
                     : wxDialog(parent, -1, caption, pos, wxDefaultSize,