mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-05 02:32:45 +00:00
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:
parent
01cb364c7a
commit
eacf741051
3 changed files with 10 additions and 6 deletions
|
@ -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)));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue