summaryrefslogtreecommitdiff
path: root/src/util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.cc')
-rw-r--r--src/util.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util.cc b/src/util.cc
index e88b39f47b..9f32814a85 100644
--- a/src/util.cc
+++ b/src/util.cc
@@ -122,15 +122,15 @@ void GetHumanReadableProcessName(char (*name)[1024]) {
snprintf(*name, sizeof(*name), "%s[%d]", title, uv_os_getpid());
}
-std::set<std::string> ParseCommaSeparatedSet(const std::string& in) {
- std::set<std::string> out;
+std::vector<std::string> SplitString(const std::string& in, char delim) {
+ std::vector<std::string> out;
if (in.empty())
return out;
std::istringstream in_stream(in);
while (in_stream.good()) {
std::string item;
- getline(in_stream, item, ',');
- out.emplace(std::move(item));
+ std::getline(in_stream, item, delim);
+ out.emplace_back(std::move(item));
}
return out;
}