diff --git a/src/util/string.h b/src/util/string.h index 24fa3d293..d40e39b95 100644 --- a/src/util/string.h +++ b/src/util/string.h @@ -311,23 +311,23 @@ inline std::vector > str_split( const std::basic_string_view &strv, T delimiter) { - std::vector> output; - size_t first = 0; + std::vector> output; + size_t first = 0; - while (first < strv.size()) - { - const auto second = strv.find_first_of(delimiter, first); + while (first < strv.size()) + { + const auto second = strv.find_first_of(delimiter, first); - if (first != second) - output.push_back(strv.substr(first, second - first)); + if (first != second) + output.push_back(strv.substr(first, second - first)); - if (second == std::string_view::npos) - break; + if (second == std::string_view::npos) + break; - first = second + 1; - } + first = second + 1; + } - return output; + return output; }