From ef68946e74d29f69ede42fa7b6d571a5ed62ebc7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 3 Dec 2013 12:00:03 +0100 Subject: CueParser: use class TagBuilder --- src/cue/CueParser.hxx | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/cue/CueParser.hxx') diff --git a/src/cue/CueParser.hxx b/src/cue/CueParser.hxx index ea25d33cb..bcc759c37 100644 --- a/src/cue/CueParser.hxx +++ b/src/cue/CueParser.hxx @@ -21,6 +21,7 @@ #define MPD_CUE_PARSER_HXX #include "check.h" +#include "tag/TagBuilder.hxx" #include "Compiler.h" #include @@ -59,7 +60,14 @@ class CueParser { /** * Tags read from the CUE header. */ - Tag *header_tag; + TagBuilder header_tag; + + /** + * Tags read for the current song (attribute #current). When + * #current gets moved to #previous, TagBuilder::Commit() will + * be called. + */ + TagBuilder song_tag; std::string filename; @@ -121,7 +129,7 @@ public: private: gcc_pure - Tag *GetCurrentTag(); + TagBuilder *GetCurrentTag(); /** * Commit the current song. It will be moved to "previous", -- cgit v1.2.3