DecoderAPI: "move" the Tag object
Reduce runtime overhead.
This commit is contained in:
parent
ae77542a11
commit
e4d0293a31
@ -566,7 +566,7 @@ decoder_tag(Decoder &decoder, InputStream *is,
|
|||||||
/* save the tag */
|
/* save the tag */
|
||||||
|
|
||||||
delete decoder.decoder_tag;
|
delete decoder.decoder_tag;
|
||||||
decoder.decoder_tag = new Tag(tag);
|
decoder.decoder_tag = new Tag(std::move(tag));
|
||||||
|
|
||||||
/* check for a new stream tag */
|
/* check for a new stream tag */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user