1
0
forked from 0ad/0ad

Make 81c57e8a28 compatible with wxWidgets 2.8, patch by vladislavbelov.

Reviewed By: Itms
Differential Revision: https://code.wildfiregames.com/D427
This was SVN commit r19525.
This commit is contained in:
Nicolas Auvray 2017-05-07 15:49:55 +00:00
parent a857ee441e
commit 7d00501a90

View File

@ -95,7 +95,7 @@ void CinemaSidebar::OnAddPath(wxCommandEvent&)
if (m_NewPathName->GetValue().empty())
return;
POST_COMMAND(AddCinemaPath, (m_NewPathName->GetValue().ToStdWstring()));
POST_COMMAND(AddCinemaPath, ((std::wstring)m_NewPathName->GetValue().wc_str()));
m_NewPathName->Clear();
ReloadPathList();
}
@ -110,7 +110,7 @@ void CinemaSidebar::OnDeletePath(wxCommandEvent&)
if (pathName.empty())
return;
POST_COMMAND(DeleteCinemaPath, (pathName.ToStdWstring()));
POST_COMMAND(DeleteCinemaPath, ((std::wstring)pathName.wc_str()));
ReloadPathList();
}