playlist/xspf: use C++11 initializer

This commit is contained in:
Max Kellermann 2020-03-11 20:51:10 +01:00
parent acb29f792f
commit 98a7d8da6c

View File

@ -45,7 +45,7 @@ struct XspfParser {
enum { enum {
ROOT, PLAYLIST, TRACKLIST, TRACK, ROOT, PLAYLIST, TRACKLIST, TRACK,
LOCATION, LOCATION,
} state; } state = ROOT;
/** /**
* The current tag within the "track" element. This is only * The current tag within the "track" element. This is only
@ -60,9 +60,6 @@ struct XspfParser {
std::string location; std::string location;
TagBuilder tag_builder; TagBuilder tag_builder;
XspfParser()
:state(ROOT) {}
}; };
static void XMLCALL static void XMLCALL