From 05a29e84580dace25a118b47c3bbe41658063a76 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 3 Sep 2019 20:36:39 +0200 Subject: [PATCH] db/simple/Song: simplify Export() --- src/db/plugins/simple/Song.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/db/plugins/simple/Song.cxx b/src/db/plugins/simple/Song.cxx index c6c4cc8f5..586ea3ec8 100644 --- a/src/db/plugins/simple/Song.cxx +++ b/src/db/plugins/simple/Song.cxx @@ -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;