tag/Tag: use C++11 initializers
This commit is contained in:
parent
720df085e5
commit
1de68b72b9
@ -37,25 +37,24 @@ struct Tag {
|
|||||||
* 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;
|
||||||
|
|
||||||
/** the total number of tag items in the #items array */
|
/** the total number of tag items in the #items array */
|
||||||
unsigned short num_items;
|
unsigned short num_items = 0;
|
||||||
|
|
||||||
/** an array of tag items */
|
/** an array of tag items */
|
||||||
TagItem **items;
|
TagItem **items = nullptr;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create an empty tag.
|
* Create an empty tag.
|
||||||
*/
|
*/
|
||||||
Tag():duration(SignedSongTime::Negative()), has_playlist(false),
|
Tag() = default;
|
||||||
num_items(0), items(nullptr) {}
|
|
||||||
|
|
||||||
Tag(const Tag &other);
|
Tag(const Tag &other);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user