mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2026-10-24 04:28:10 +00:00
code review changes
This commit is contained in:
1 parent
42c4068d2a
commit
2478a1355f
11 files changed
+104
-118
No files matched your search
@@ -104,13 +104,13 @@ namespace utils
|
||||
|
||||
std::vector<std::string> StringSplit(const std::string& str, const char delim)
|
||||
{
|
||||
std::vector<std::string> strings{};
|
||||
std::vector<std::string> strings;
|
||||
std::istringstream stream(str);
|
||||
|
||||
std::string s;
|
||||
while (std::getline(stream, s, delim))
|
||||
{
|
||||
strings.push_back(s);
|
||||
strings.emplace_back(std::move(s));
|
||||
}
|
||||
|
||||
return strings;
|
||||
|
||||
Reference in new issue
Block a user