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

db/simple/Song: simplify Export()

parent 7f9a8b87
...@@ -74,9 +74,8 @@ LightSong ...@@ -74,9 +74,8 @@ LightSong
Song::Export() const noexcept Song::Export() const noexcept
{ {
LightSong dest(uri.c_str(), tag); LightSong dest(uri.c_str(), tag);
dest.directory = parent->IsRoot() if (!parent->IsRoot())
? nullptr : parent->GetPath(); dest.directory = parent->GetPath();
dest.real_uri = nullptr;
dest.mtime = mtime; dest.mtime = mtime;
dest.start_time = start_time; dest.start_time = start_time;
dest.end_time = end_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