Core/Bnet: Cleanup/Improve Battle.net account commands (#33)

This commit is contained in:
Ghaster authored and GitHub committed 2020-02-19 02:52:11 +01:00
1 parent 8447d9a6a5
commit df173c7e1c
11 files changed
+145 -64

No files matched your search

+1 -1
View File
@@ -579,7 +579,7 @@ void HexStrToByteArray(std::string const& str, uint8* out, bool reverse /*= fals
bool StringToBool(std::string const& str)
{
std::string lowerStr = str;
std::transform(str.begin(), str.end(), lowerStr.begin(), ::tolower);
std::transform(str.begin(), str.end(), lowerStr.begin(), [](char c) { return char(::tolower(c)); });
return lowerStr == "1" || lowerStr == "true" || lowerStr == "yes";
}