Make art provider id of type "char *" instead of "wxChar *".
These strings don't need to be wide and, as elsewhere, prefer the compatibility with 2.8 ANSI build to compatibility with Unicode build. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66503 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -189,18 +189,18 @@ void wxArtBrowserDialog::SetArtClient(const wxArtClient& client)
|
||||
m_list->SetItemState(sel, wxLIST_STATE_FOCUSED, wxLIST_STATE_FOCUSED);
|
||||
|
||||
m_client = client;
|
||||
SetArtBitmap((const wxChar*)m_list->GetItemData(sel), m_client);
|
||||
SetArtBitmap((const char*)m_list->GetItemData(sel), m_client);
|
||||
}
|
||||
|
||||
void wxArtBrowserDialog::OnSelectItem(wxListEvent &event)
|
||||
{
|
||||
const wxChar *data = (const wxChar*)event.GetData();
|
||||
const char *data = (const char*)event.GetData();
|
||||
SetArtBitmap(data, m_client, wxDefaultSize);
|
||||
}
|
||||
|
||||
void wxArtBrowserDialog::OnChooseClient(wxCommandEvent &event)
|
||||
{
|
||||
const wxChar *data = (const wxChar*)event.GetClientData();
|
||||
const char *data = (const char*)event.GetClientData();
|
||||
SetArtClient(data);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user