tag/Config: use IterableSplitString instead of SplitString()
This commit is contained in:
parent
0173d3b313
commit
4a97c45585
|
@ -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("-")) {
|
||||||
|
|
Loading…
Reference in New Issue