summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinWX/ARCodeAddEdit.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2014-03-12 15:33:41 -0400
committerLioncash <mathew1800@gmail.com>2014-03-14 13:51:23 -0400
commita82675b7d581421fa80d5d5c53253cf1d5c1a26d (patch)
tree8f1efce1e00c6a7d6044ca3b543d9211a65e8c11 /Source/Core/DolphinWX/ARCodeAddEdit.cpp
parentdccc6d8b47b1f6fdab5374003492560c20f766b6 (diff)
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).
Diffstat (limited to 'Source/Core/DolphinWX/ARCodeAddEdit.cpp')
-rw-r--r--Source/Core/DolphinWX/ARCodeAddEdit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/ARCodeAddEdit.cpp b/Source/Core/DolphinWX/ARCodeAddEdit.cpp
index ec8934d5c9..60a3215f45 100644
--- a/Source/Core/DolphinWX/ARCodeAddEdit.cpp
+++ b/Source/Core/DolphinWX/ARCodeAddEdit.cpp
@@ -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;