aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/Song.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-02-04 00:38:52 +0100
committerMax Kellermann <max@duempel.org>2014-02-04 00:38:52 +0100
commitdb69ceade64c1e1a9c3d7a7c634f8b8b05ce73b9 (patch)
treebc949afdd343c881993e2faf9003ac1b171fdab0 /src/db/Song.cxx
parentb9c248e7e7a451aa8aa2718323abd02a73d3dab5 (diff)
downloadmpd-db69ceade64c1e1a9c3d7a7c634f8b8b05ce73b9.tar.gz
mpd-db69ceade64c1e1a9c3d7a7c634f8b8b05ce73b9.tar.xz
mpd-db69ceade64c1e1a9c3d7a7c634f8b8b05ce73b9.zip
db/LightSong: make "real_uri" a pointer
Reduce overhead. LightSong can always point to the "real" allocated string.
Diffstat (limited to '')
-rw-r--r--src/db/Song.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/db/Song.cxx b/src/db/Song.cxx
index 15924a40a..1c3fa0b64 100644
--- a/src/db/Song.cxx
+++ b/src/db/Song.cxx
@@ -102,6 +102,7 @@ Song::Export() const
dest.directory = parent->IsRoot()
? nullptr : parent->GetPath();
dest.uri = uri;
+ dest.real_uri = nullptr;
dest.tag = &tag;
dest.mtime = mtime;
dest.start_ms = start_ms;