From eacf7410518a18f64dfdbaf82a829c2f499c46cb Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 24 Mar 2015 08:17:19 -0400 Subject: DolphinWX/Common: Change some find_first_of usages to find It's unnecessary to use find_first_of when all you're searching for is a single character. --- Source/Core/Common/IniFile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/Core/Common/IniFile.cpp') diff --git a/Source/Core/Common/IniFile.cpp b/Source/Core/Common/IniFile.cpp index f94e62ebfa..584a457477 100644 --- a/Source/Core/Common/IniFile.cpp +++ b/Source/Core/Common/IniFile.cpp @@ -104,7 +104,7 @@ bool IniFile::Section::Get(const std::string& key, std::vector* out while (subStart != std::string::npos) { // Find next , - size_t subEnd = temp.find_first_of(",", subStart); + size_t subEnd = temp.find(',', subStart); if (subStart != subEnd) // take from first char until next , out->push_back(StripSpaces(temp.substr(subStart, subEnd - subStart))); -- cgit v1.2.3