db/simple/Song: use C++11 initializers
This commit is contained in:
parent
9be14bbe82
commit
72437ca9e2
@ -29,8 +29,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
inline Song::Song(const char *_uri, size_t uri_length, Directory &_parent)
|
inline Song::Song(const char *_uri, size_t uri_length, Directory &_parent)
|
||||||
:parent(&_parent), mtime(std::chrono::system_clock::time_point::min()),
|
:parent(&_parent)
|
||||||
start_time(SongTime::zero()), end_time(SongTime::zero())
|
|
||||||
{
|
{
|
||||||
memcpy(uri, _uri, uri_length + 1);
|
memcpy(uri, _uri, uri_length + 1);
|
||||||
}
|
}
|
||||||
|
@ -74,18 +74,19 @@ struct Song {
|
|||||||
* The time stamp of the last file modification. A negative
|
* The time stamp of the last file modification. A negative
|
||||||
* value means that this is unknown/unavailable.
|
* value means that this is unknown/unavailable.
|
||||||
*/
|
*/
|
||||||
std::chrono::system_clock::time_point mtime;
|
std::chrono::system_clock::time_point mtime =
|
||||||
|
std::chrono::system_clock::time_point::min();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Start of this sub-song within the file.
|
* Start of this sub-song within the file.
|
||||||
*/
|
*/
|
||||||
SongTime start_time;
|
SongTime start_time = SongTime::zero();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* End of this sub-song within the file.
|
* End of this sub-song within the file.
|
||||||
* Unused if zero.
|
* Unused if zero.
|
||||||
*/
|
*/
|
||||||
SongTime end_time;
|
SongTime end_time = SongTime::zero();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The file name.
|
* The file name.
|
||||||
|
Loading…
Reference in New Issue
Block a user