From 0727ee94c015cae1cc331f510c665f288518fff9 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 30 Jun 2022 20:28:11 +0200 Subject: [PATCH] tag/Id3Scan: use std::string_view --- src/tag/Id3Scan.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tag/Id3Scan.cxx b/src/tag/Id3Scan.cxx index 3dbf04da4..5cf553bd3 100644 --- a/src/tag/Id3Scan.cxx +++ b/src/tag/Id3Scan.cxx @@ -25,10 +25,13 @@ #include "Builder.hxx" #include "Tag.hxx" #include "Id3MusicBrainz.hxx" -#include "util/StringView.hxx" +#include "util/StringAPI.hxx" +#include "util/StringStrip.hxx" #include +#include + #include #include @@ -89,10 +92,7 @@ InvokeOnTag(TagHandler &handler, TagType type, const id3_ucs4_t *ucs4) noexcept if (!utf8) return; - StringView s{utf8.c_str()}; - s.Strip(); - - handler.OnTag(type, s); + handler.OnTag(type, Strip(std::string_view{utf8.c_str()})); } /**