aboutsummaryrefslogtreecommitdiffstats
path: root/src/TagHandler.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-07-30 20:11:57 +0200
committerMax Kellermann <max@duempel.org>2013-07-30 20:19:53 +0200
commit06f898cc1240a29b293de0e97ad95a4fdc971254 (patch)
tree001a6d3db039cdc03323f3bfddc13b94bde31ce4 /src/TagHandler.cxx
parent6a9ab8bc0e2f5d34803513bb2d94d041a607a58c (diff)
downloadmpd-06f898cc1240a29b293de0e97ad95a4fdc971254.tar.gz
mpd-06f898cc1240a29b293de0e97ad95a4fdc971254.tar.xz
mpd-06f898cc1240a29b293de0e97ad95a4fdc971254.zip
tag: convert to C++
Diffstat (limited to 'src/TagHandler.cxx')
-rw-r--r--src/TagHandler.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/TagHandler.cxx b/src/TagHandler.cxx
index d3dfef497..227c48c9c 100644
--- a/src/TagHandler.cxx
+++ b/src/TagHandler.cxx
@@ -19,14 +19,14 @@
#include "config.h"
#include "TagHandler.hxx"
-#include "tag.h"
+#include "Tag.hxx"
#include <glib.h>
static void
add_tag_duration(unsigned seconds, void *ctx)
{
- struct tag *tag = (struct tag *)ctx;
+ Tag *tag = (Tag *)ctx;
tag->time = seconds;
}
@@ -34,9 +34,9 @@ add_tag_duration(unsigned seconds, void *ctx)
static void
add_tag_tag(enum tag_type type, const char *value, void *ctx)
{
- struct tag *tag = (struct tag *)ctx;
+ Tag *tag = (Tag *)ctx;
- tag_add_item(tag, type, value);
+ tag->AddItem(type, value);
}
const struct tag_handler add_tag_handler = {
@@ -48,7 +48,7 @@ const struct tag_handler add_tag_handler = {
static void
full_tag_pair(const char *name, G_GNUC_UNUSED const char *value, void *ctx)
{
- struct tag *tag = (struct tag *)ctx;
+ Tag *tag = (Tag *)ctx;
if (g_ascii_strcasecmp(name, "cuesheet") == 0)
tag->has_playlist = true;