diff options
| author | Lioncash <mathew1800@gmail.com> | 2015-03-24 08:17:19 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2015-03-24 08:32:44 -0400 |
| commit | eacf7410518a18f64dfdbaf82a829c2f499c46cb (patch) | |
| tree | 692ff95c9407b5814edea0fd6cc1ef1aa2d388c4 /Source/Core/Common/IniFile.cpp | |
| parent | 01cb364c7a93500ce2fb22c4222947dabbdd0696 (diff) | |
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.
Diffstat (limited to 'Source/Core/Common/IniFile.cpp')
| -rw-r--r-- | Source/Core/Common/IniFile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<std::string>* 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))); |
