Commit 05a29e84 authored by Max Kellermann's avatar Max Kellermann

db/simple/Song: simplify Export()

parent 7f9a8b87
......@@ -74,9 +74,8 @@ LightSong
Song::Export() const noexcept
{
LightSong dest(uri.c_str(), tag);
dest.directory = parent->IsRoot()
? nullptr : parent->GetPath();
dest.real_uri = nullptr;
if (!parent->IsRoot())
dest.directory = parent->GetPath();
dest.mtime = mtime;
dest.start_time = start_time;
dest.end_time = end_time;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment