mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
Kill off some usages of c_str.
Also changes some function params, but this is ok. Some simplifications were also able to be made (ie. killing off strcmps with ==, etc).
This commit is contained in:
parent
dccc6d8b47
commit
a82675b7d5
170 changed files with 812 additions and 704 deletions
|
@ -579,7 +579,7 @@ void CFrame::OnToolBar(wxCommandEvent& event)
|
|||
}
|
||||
SaveIniPerspectives();
|
||||
GetStatusBar()->SetStatusText(StrToWxStr(std::string
|
||||
("Saved " + Perspectives[ActivePerspective].Name).c_str()), 0);
|
||||
("Saved " + Perspectives[ActivePerspective].Name)), 0);
|
||||
break;
|
||||
case IDM_PERSPECTIVES_ADD_PANE:
|
||||
AddPane();
|
||||
|
@ -869,12 +869,14 @@ void CFrame::LoadIniPerspectives()
|
|||
for (auto& Width : _SWidth)
|
||||
{
|
||||
int _Tmp;
|
||||
if (TryParse(Width.c_str(), &_Tmp)) Tmp.Width.push_back(_Tmp);
|
||||
if (TryParse(Width, &_Tmp))
|
||||
Tmp.Width.push_back(_Tmp);
|
||||
}
|
||||
for (auto& Height : _SHeight)
|
||||
{
|
||||
int _Tmp;
|
||||
if (TryParse(Height.c_str(), &_Tmp)) Tmp.Height.push_back(_Tmp);
|
||||
if (TryParse(Height, &_Tmp))
|
||||
Tmp.Height.push_back(_Tmp);
|
||||
}
|
||||
Perspectives.push_back(Tmp);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue