db/LightSong: make "real_uri" a pointer

Reduce overhead.  LightSong can always point to the "real" allocated
string.
This commit is contained in:
Max Kellermann
2014-02-04 00:38:52 +01:00
parent b9c248e7e7
commit db69ceade6
3 changed files with 4 additions and 3 deletions

View File

@@ -25,7 +25,7 @@
DetachedSong::DetachedSong(const LightSong &other)
:uri(other.GetURI().c_str()),
real_uri(other.real_uri),
real_uri(other.real_uri != nullptr ? other.real_uri : ""),
tag(*other.tag),
mtime(other.mtime),
start_ms(other.start_ms), end_ms(other.end_ms) {}