diff options
Diffstat (limited to 'Source/Core/Common/StringUtil.cpp')
| -rw-r--r-- | Source/Core/Common/StringUtil.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp index 9a42d35fd6..16281ac91f 100644 --- a/Source/Core/Common/StringUtil.cpp +++ b/Source/Core/Common/StringUtil.cpp @@ -26,10 +26,10 @@ #endif // faster than sscanf -bool AsciiToHex(const char* _szValue, u32& result) +bool AsciiToHex(const std::string& _szValue, u32& result) { char *endptr = nullptr; - const u32 value = strtoul(_szValue, &endptr, 16); + const u32 value = strtoul(_szValue.c_str(), &endptr, 16); if (!endptr || *endptr) return false; |
