diff options
author | Max Kellermann <max@duempel.org> | 2013-07-30 20:11:57 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-07-30 20:19:53 +0200 |
commit | 06f898cc1240a29b293de0e97ad95a4fdc971254 (patch) | |
tree | 001a6d3db039cdc03323f3bfddc13b94bde31ce4 /test/run_input.cxx | |
parent | 6a9ab8bc0e2f5d34803513bb2d94d041a607a58c (diff) | |
download | mpd-06f898cc1240a29b293de0e97ad95a4fdc971254.tar.gz mpd-06f898cc1240a29b293de0e97ad95a4fdc971254.tar.xz mpd-06f898cc1240a29b293de0e97ad95a4fdc971254.zip |
tag: convert to C++
Diffstat (limited to '')
-rw-r--r-- | test/run_input.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/run_input.cxx b/test/run_input.cxx index 43e2f78b4..e93e817d3 100644 --- a/test/run_input.cxx +++ b/test/run_input.cxx @@ -20,7 +20,7 @@ #include "config.h" #include "TagSave.hxx" #include "stdbin.h" -#include "tag.h" +#include "Tag.hxx" #include "conf.h" #include "input_stream.h" #include "InputStream.hxx" @@ -75,11 +75,11 @@ dump_input_stream(struct input_stream *is) /* read data and tags from the stream */ while (!input_stream_eof(is)) { - struct tag *tag = input_stream_tag(is); + Tag *tag = input_stream_tag(is); if (tag != NULL) { g_printerr("Received a tag:\n"); - tag_save(stderr, tag); - tag_free(tag); + tag_save(stderr, *tag); + delete tag; } num_read = input_stream_read(is, buffer, sizeof(buffer), |