diff options
author | Max Kellermann <max@duempel.org> | 2015-06-20 16:06:01 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-06-20 16:06:09 +0200 |
commit | e4d0293a31f30c01142202ee433cd28115b73343 (patch) | |
tree | dafeed11c81e6df30f9b8cb59453759f6513405a /src | |
parent | ae77542a118120adb4b339ad6ec2ec433bf43533 (diff) | |
download | mpd-e4d0293a31f30c01142202ee433cd28115b73343.tar.gz mpd-e4d0293a31f30c01142202ee433cd28115b73343.tar.xz mpd-e4d0293a31f30c01142202ee433cd28115b73343.zip |
DecoderAPI: "move" the Tag object
Reduce runtime overhead.
Diffstat (limited to 'src')
-rw-r--r-- | src/decoder/DecoderAPI.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder/DecoderAPI.cxx b/src/decoder/DecoderAPI.cxx index 4794d60e7..366c4af6d 100644 --- a/src/decoder/DecoderAPI.cxx +++ b/src/decoder/DecoderAPI.cxx @@ -566,7 +566,7 @@ decoder_tag(Decoder &decoder, InputStream *is, /* save the 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 */ |