tag/Id3Scan: eliminate a string copy in UFID importer
This commit is contained in:
parent
5675431eaf
commit
e153407b51
@ -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,
|
|||||||
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});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user