fix: Workaround that broke functionality. Instead disable warnings

This actually fixes #515 for now
This commit is contained in:
WerWolv
2022-05-28 16:18:55 +02:00
parent 39c743631b
commit 088205385f
3 changed files with 10 additions and 5 deletions

View File

@@ -204,11 +204,15 @@ namespace hex {
}
std::vector<std::string> splitString(const std::string &string, const std::string &delimiter) {
size_t start = 0, end;
size_t start = 0, end = 0;
std::string token;
std::vector<std::string> res;
while ((end = string.find(delimiter, start)) != std::string::npos) {
size_t size = end - start;
if (start + size > string.length())
break;
token = string.substr(start, end - start);
start = end + delimiter.length();
res.push_back(token);