tag/Handler: use std::string_view instead of StringView

This commit is contained in:
Max Kellermann
2022-06-29 16:44:23 +02:00
parent ca9dd74fbf
commit ec66ee3bfb
7 changed files with 38 additions and 30 deletions

View File

@@ -81,11 +81,11 @@ adplug_file_decode(DecoderClient &client, Path path_fs)
}
static void
adplug_scan_tag(TagType type, const std::string &value,
adplug_scan_tag(TagType type, const std::string_view value,
TagHandler &handler) noexcept
{
if (!value.empty())
handler.OnTag(type, {value.data(), value.size()});
handler.OnTag(type, value);
}
static bool