Commit ac9a9326 authored by Max Kellermann's avatar Max Kellermann

playlist/cue/CueParser: use C++11 initializers

parent 4b79f004
...@@ -29,13 +29,6 @@ ...@@ -29,13 +29,6 @@
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
CueParser::CueParser()
:state(HEADER),
current(nullptr),
previous(nullptr),
finished(nullptr),
end(false) {}
CueParser::~CueParser() CueParser::~CueParser()
{ {
delete current; delete current;
......
...@@ -55,7 +55,7 @@ class CueParser { ...@@ -55,7 +55,7 @@ class CueParser {
* Ignore everything until the next "TRACK". * Ignore everything until the next "TRACK".
*/ */
IGNORE_TRACK, IGNORE_TRACK,
} state; } state = HEADER;
/** /**
* Tags read from the CUE header. * Tags read from the CUE header.
...@@ -74,29 +74,28 @@ class CueParser { ...@@ -74,29 +74,28 @@ class CueParser {
/** /**
* The song currently being edited. * The song currently being edited.
*/ */
DetachedSong *current; DetachedSong *current = nullptr;
/** /**
* The previous song. It is remembered because its end_time * The previous song. It is remembered because its end_time
* will be set to the current song's start time. * will be set to the current song's start time.
*/ */
DetachedSong *previous; DetachedSong *previous = nullptr;
/** /**
* A song that is completely finished and can be returned to * A song that is completely finished and can be returned to
* the caller via cue_parser_get(). * the caller via cue_parser_get().
*/ */
DetachedSong *finished; DetachedSong *finished = nullptr;
/** /**
* Tracks whether cue_parser_finish() has been called. If * Tracks whether cue_parser_finish() has been called. If
* true, then all remaining (partial) results will be * true, then all remaining (partial) results will be
* delivered by cue_parser_get(). * delivered by cue_parser_get().
*/ */
bool end; bool end = false;
public: public:
CueParser();
~CueParser(); ~CueParser();
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment