db/LightSong: pass URI to constructor

This commit is contained in:
Max Kellermann
2018-07-06 16:56:12 +02:00
parent 80cb680fca
commit 45139f94bb
5 changed files with 20 additions and 19 deletions

View File

@@ -98,10 +98,9 @@ Song::GetURI() const noexcept
LightSong
Song::Export() const noexcept
{
LightSong dest(tag);
LightSong dest(uri, tag);
dest.directory = parent->IsRoot()
? nullptr : parent->GetPath();
dest.uri = uri;
dest.real_uri = nullptr;
dest.mtime = mtime;
dest.start_time = start_time;