StringUtil: Make SplitString return by value

Simpler usage.
This commit is contained in:
Léo Lam
2017-06-11 16:33:10 +02:00
parent 937d72e591
commit 17ef4c8046
11 changed files with 19 additions and 34 deletions

View File

@ -86,8 +86,7 @@ void LoadPatchSection(const std::string& section, std::vector<Patch>& patches, I
line[loc] = ':';
}
std::vector<std::string> items;
SplitString(line, ':', items);
const std::vector<std::string> items = SplitString(line, ':');
if (items.size() >= 3)
{