summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-11-21 16:50:18 +0100
committerWillem Jan Palenstijn <Willem.Jan.Palenstijn@cwi.nl>2016-11-21 17:03:46 +0100
commit45415c92329fa3ae24f979a40081a91d0a167cd9 (patch)
tree16e60c30cd84fd942c0902ffc8d6f689183e7902 /src
parentd93769add0fc322c051614d610f1aa645cb859da (diff)
downloadastra-45415c92329fa3ae24f979a40081a91d0a167cd9.tar.gz
astra-45415c92329fa3ae24f979a40081a91d0a167cd9.tar.bz2
astra-45415c92329fa3ae24f979a40081a91d0a167cd9.tar.xz
astra-45415c92329fa3ae24f979a40081a91d0a167cd9.zip
Fix hardcoded delim in splitString
Diffstat (limited to 'src')
-rw-r--r--src/Utilities.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Utilities.cpp b/src/Utilities.cpp
index 8b0ca94..9733c30 100644
--- a/src/Utilities.cpp
+++ b/src/Utilities.cpp
@@ -121,7 +121,7 @@ void splitString(std::vector<std::string> &items, const std::string& s,
size_t current = 0;
size_t next;
do {
- next = s.find_first_of(",;", current);
+ next = s.find_first_of(delim, current);
items.push_back(s.substr(current, next - current));
current = next + 1;
} while (next != std::string::npos);