diff options
author | Max Kellermann <max@duempel.org> | 2013-07-31 00:34:22 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-07-31 00:34:22 +0200 |
commit | cbd38327e7f6948647768227ac4836f64e5ccd51 (patch) | |
tree | 03510bbcb68e22a76d261089c97a851a0e6596c3 /test | |
parent | 06f898cc1240a29b293de0e97ad95a4fdc971254 (diff) | |
download | mpd-cbd38327e7f6948647768227ac4836f64e5ccd51.tar.gz mpd-cbd38327e7f6948647768227ac4836f64e5ccd51.tar.xz mpd-cbd38327e7f6948647768227ac4836f64e5ccd51.zip |
DecoderAPI: pass rvalue reference to decoder_tag()
Avoid duplicating the tag.
Diffstat (limited to '')
-rw-r--r-- | test/dump_playlist.cxx | 2 | ||||
-rw-r--r-- | test/read_tags.cxx | 2 | ||||
-rw-r--r-- | test/run_decoder.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/test/dump_playlist.cxx b/test/dump_playlist.cxx index df7c6d739..ea341ab95 100644 --- a/test/dump_playlist.cxx +++ b/test/dump_playlist.cxx @@ -106,7 +106,7 @@ decoder_data(G_GNUC_UNUSED struct decoder *decoder, enum decoder_command decoder_tag(G_GNUC_UNUSED struct decoder *decoder, G_GNUC_UNUSED struct input_stream *is, - G_GNUC_UNUSED const Tag *tag) + G_GNUC_UNUSED Tag &&tag) { return DECODE_COMMAND_NONE; } diff --git a/test/read_tags.cxx b/test/read_tags.cxx index 515a84706..ee9464b2c 100644 --- a/test/read_tags.cxx +++ b/test/read_tags.cxx @@ -92,7 +92,7 @@ decoder_data(G_GNUC_UNUSED struct decoder *decoder, enum decoder_command decoder_tag(G_GNUC_UNUSED struct decoder *decoder, G_GNUC_UNUSED struct input_stream *is, - G_GNUC_UNUSED const Tag *tag) + G_GNUC_UNUSED Tag &&tag) { return DECODE_COMMAND_NONE; } diff --git a/test/run_decoder.cxx b/test/run_decoder.cxx index 3c236ab2f..a05afb113 100644 --- a/test/run_decoder.cxx +++ b/test/run_decoder.cxx @@ -113,7 +113,7 @@ decoder_data(G_GNUC_UNUSED struct decoder *decoder, enum decoder_command decoder_tag(G_GNUC_UNUSED struct decoder *decoder, G_GNUC_UNUSED struct input_stream *is, - G_GNUC_UNUSED const Tag *tag) + G_GNUC_UNUSED Tag &&tag) { return DECODE_COMMAND_NONE; } |