From 4a97c4558502b7d8b8ff48ec02def7faa03cb074 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 30 Jun 2022 19:35:54 +0200 Subject: [PATCH] tag/Config: use IterableSplitString instead of SplitString() --- src/tag/Config.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tag/Config.cxx b/src/tag/Config.cxx index 748b765e8..ae11872e6 100644 --- a/src/tag/Config.cxx +++ b/src/tag/Config.cxx @@ -24,7 +24,7 @@ #include "config/Option.hxx" #include "util/ASCII.hxx" #include "util/RuntimeError.hxx" -#include "util/SplitString.hxx" +#include "util/IterableSplitString.hxx" #include "util/StringView.hxx" void @@ -45,7 +45,9 @@ TagLoadConfig(const ConfigData &config) /* no "+-": not incremental */ global_tag_mask = TagMask::None(); - for (StringView name : SplitString(value, ',')) { + for (StringView name : IterableSplitString(value, ',')) { + name.Strip(); + if (name.SkipPrefix("+")) { plus = true; } else if (name.SkipPrefix("-")) {