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.
This commit is contained in:
Lioncash 2015-03-24 08:17:19 -04:00
parent 01cb364c7a
commit eacf741051
3 changed files with 10 additions and 6 deletions

View file

@ -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)));