mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
StringUtil: Make SplitString return by value
Simpler usage.
This commit is contained in:
parent
937d72e591
commit
17ef4c8046
11 changed files with 19 additions and 34 deletions
|
@ -84,8 +84,7 @@ std::string EscapeFileName(const std::string& filename)
|
|||
|
||||
std::string EscapePath(const std::string& path)
|
||||
{
|
||||
std::vector<std::string> split_strings;
|
||||
SplitString(path, '/', split_strings);
|
||||
const std::vector<std::string> split_strings = SplitString(path, '/');
|
||||
|
||||
std::vector<std::string> escaped_split_strings;
|
||||
escaped_split_strings.reserve(split_strings.size());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue