Buildfix.
This commit is contained in:
parent
03ec9a2e08
commit
95558cdc69
|
@ -285,7 +285,7 @@ void CCodeWindow::OnSymbolsMenu(wxCommandEvent& event)
|
|||
|
||||
if (!path.IsEmpty())
|
||||
{
|
||||
std::ifstream f(WxStrToStr(path));
|
||||
std::ifstream f(WxStrToStr(path).c_str());
|
||||
|
||||
std::string line;
|
||||
while (std::getline(f, line))
|
||||
|
|
|
@ -612,7 +612,7 @@ void GamepadPage::DeleteProfile(wxCommandEvent&)
|
|||
|
||||
if (File::Exists(fnamecstr) &&
|
||||
AskYesNoT("Are you sure you want to delete \"%s\"?",
|
||||
WxStrToStr(profile_cbox->GetValue())))
|
||||
WxStrToStr(profile_cbox->GetValue()).c_str()))
|
||||
{
|
||||
File::Delete(fnamecstr);
|
||||
|
||||
|
|
|
@ -57,10 +57,11 @@ void Explore(const char *path)
|
|||
|
||||
std::string WxStrToStr(const wxString& str)
|
||||
{
|
||||
return str.ToUTF8();
|
||||
return str.ToUTF8().data();
|
||||
}
|
||||
|
||||
wxString StrToWxStr(const std::string& str)
|
||||
{
|
||||
//return wxString::FromUTF8Unchecked(str.c_str());
|
||||
return wxString::FromUTF8(str.c_str());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue