Commit ea8642de authored by Max Kellermann's avatar Max Kellermann

tag/Builder: use C++11 initializers

parent eef5b582
...@@ -39,13 +39,13 @@ class TagBuilder { ...@@ -39,13 +39,13 @@ class TagBuilder {
* The duration of the song. A negative value means that the * The duration of the song. A negative value means that the
* length is unknown. * length is unknown.
*/ */
SignedSongTime duration; SignedSongTime duration = SignedSongTime::Negative();
/** /**
* Does this file have an embedded playlist (e.g. embedded CUE * Does this file have an embedded playlist (e.g. embedded CUE
* sheet)? * sheet)?
*/ */
bool has_playlist; bool has_playlist = false;
/** an array of tag items */ /** an array of tag items */
std::vector<TagItem *> items; std::vector<TagItem *> items;
...@@ -54,8 +54,7 @@ public: ...@@ -54,8 +54,7 @@ public:
/** /**
* Create an empty tag. * Create an empty tag.
*/ */
TagBuilder() TagBuilder() = default;
:duration(SignedSongTime::Negative()), has_playlist(false) {}
~TagBuilder() { ~TagBuilder() {
Clear(); Clear();
......
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