diff --git a/src/tag/Id3Scan.cxx b/src/tag/Id3Scan.cxx index 823e175b5..ca862c86e 100644 --- a/src/tag/Id3Scan.cxx +++ b/src/tag/Id3Scan.cxx @@ -32,7 +32,6 @@ #include -#include #include #include @@ -282,8 +281,8 @@ tag_id3_import_ufid(const struct id3_tag *id3_tag, if (value == nullptr || length == 0) continue; - std::string p((const char *)value, length); - handler.OnTag(TAG_MUSICBRAINZ_TRACKID, p.c_str()); + handler.OnTag(TAG_MUSICBRAINZ_TRACKID, + {(const char *)value, length}); } }