tag/Config: use IterableSplitString instead of SplitString()

This commit is contained in:
Max Kellermann 2022-06-30 19:35:54 +02:00
parent 0173d3b313
commit 4a97c45585
1 changed files with 4 additions and 2 deletions

View File

@ -24,7 +24,7 @@
#include "config/Option.hxx" #include "config/Option.hxx"
#include "util/ASCII.hxx" #include "util/ASCII.hxx"
#include "util/RuntimeError.hxx" #include "util/RuntimeError.hxx"
#include "util/SplitString.hxx" #include "util/IterableSplitString.hxx"
#include "util/StringView.hxx" #include "util/StringView.hxx"
void void
@ -45,7 +45,9 @@ TagLoadConfig(const ConfigData &config)
/* no "+-": not incremental */ /* no "+-": not incremental */
global_tag_mask = TagMask::None(); global_tag_mask = TagMask::None();
for (StringView name : SplitString(value, ',')) { for (StringView name : IterableSplitString(value, ',')) {
name.Strip();
if (name.SkipPrefix("+")) { if (name.SkipPrefix("+")) {
plus = true; plus = true;
} else if (name.SkipPrefix("-")) { } else if (name.SkipPrefix("-")) {