db/LightSong: implicit initialization
This commit is contained in:
@@ -59,11 +59,8 @@ public:
|
||||
uri2(std::move(_uri)),
|
||||
real_uri2(std::move(object.url)),
|
||||
tag2(std::move(object.tag)) {
|
||||
directory = nullptr;
|
||||
uri = uri2.c_str();
|
||||
real_uri = real_uri2.c_str();
|
||||
mtime = std::chrono::system_clock::time_point::min();
|
||||
start_time = end_time = SongTime::zero();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -322,11 +319,8 @@ visitSong(const UPnPDirObject &meta, const char *path,
|
||||
return;
|
||||
|
||||
LightSong song(meta.tag);
|
||||
song.directory = nullptr;
|
||||
song.uri = path;
|
||||
song.real_uri = meta.url.c_str();
|
||||
song.mtime = std::chrono::system_clock::time_point::min();
|
||||
song.start_time = song.end_time = SongTime::zero();
|
||||
|
||||
if (selection.Match(song))
|
||||
visit_song(song);
|
||||
|
Reference in New Issue
Block a user