mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06: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:
@ -112,8 +112,8 @@ void CARCodeAddEdit::SaveCheatData(wxCommandEvent& WXUNUSED (event))
|
||||
if (pieces.size() == 2 && pieces[0].size() == 8 && pieces[1].size() == 8)
|
||||
{
|
||||
// Decrypted code line.
|
||||
u32 addr = strtoul(pieces[0].c_str(), nullptr, 16);
|
||||
u32 value = strtoul(pieces[1].c_str(), nullptr, 16);
|
||||
u32 addr = std::stoul(pieces[0], nullptr, 16);
|
||||
u32 value = std::stoul(pieces[1], nullptr, 16);
|
||||
|
||||
decryptedLines.push_back(ActionReplay::AREntry(addr, value));
|
||||
continue;
|
||||
|
Reference in New Issue
Block a user