Commit e153407b authored by Max Kellermann's avatar Max Kellermann

tag/Id3Scan: eliminate a string copy in UFID importer

parent 5675431e
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
#include <id3tag.h> #include <id3tag.h>
#include <string>
#include <exception> #include <exception>
#include <string.h> #include <string.h>
...@@ -282,8 +281,8 @@ tag_id3_import_ufid(const struct id3_tag *id3_tag, ...@@ -282,8 +281,8 @@ tag_id3_import_ufid(const struct id3_tag *id3_tag,
if (value == nullptr || length == 0) if (value == nullptr || length == 0)
continue; continue;
std::string p((const char *)value, length); handler.OnTag(TAG_MUSICBRAINZ_TRACKID,
handler.OnTag(TAG_MUSICBRAINZ_TRACKID, p.c_str()); {(const char *)value, length});
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment