db/upnp, playlist/pls: use AddItem(std::string_view)

This commit is contained in:
Max Kellermann
2023-09-06 16:08:38 +02:00
parent 44beae519d
commit 2f4e2935a3
3 changed files with 3 additions and 3 deletions

View File

@@ -172,7 +172,7 @@ protected:
if (tag_type != TAG_NUM_OF_ITEM_TYPES) {
assert(object.type != UPnPDirObject::Type::UNKNOWN);
tag.AddItem(tag_type, value.c_str());
tag.AddItem(tag_type, value);
if (tag_type == TAG_TITLE)
object.name = TitleToPathSegment(std::move(value));