summaryrefslogtreecommitdiff
path: root/src/tag
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-01-20 19:41:29 +0100
committerMax Kellermann <max@musicpd.org>2018-01-20 19:53:38 +0100
commitea8642dec9b271c0acca2ff3f54a8c6359d1a10a (patch)
tree2a9cf43de12379b4ac0be103fd6228766f1390c1 /src/tag
parenteef5b58211066c7832777ec4c423288d7a430142 (diff)
tag/Builder: use C++11 initializers
Diffstat (limited to 'src/tag')
-rw-r--r--src/tag/Builder.hxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/tag/Builder.hxx b/src/tag/Builder.hxx
index 8fb84b10a..ef8e56cc6 100644
--- a/src/tag/Builder.hxx
+++ b/src/tag/Builder.hxx
@@ -39,13 +39,13 @@ class TagBuilder {
* The duration of the song. A negative value means that the
* length is unknown.
*/
- SignedSongTime duration;
+ SignedSongTime duration = SignedSongTime::Negative();
/**
* Does this file have an embedded playlist (e.g. embedded CUE
* sheet)?
*/
- bool has_playlist;
+ bool has_playlist = false;
/** an array of tag items */
std::vector<TagItem *> items;
@@ -54,8 +54,7 @@ public:
/**
* Create an empty tag.
*/
- TagBuilder()
- :duration(SignedSongTime::Negative()), has_playlist(false) {}
+ TagBuilder() = default;
~TagBuilder() {
Clear();