db/LightSong: make "real_uri" a pointer
Reduce overhead. LightSong can always point to the "real" allocated string.
This commit is contained in:
@@ -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) {}
|
||||
|
Reference in New Issue
Block a user