db/LightSong: make "real_uri" a pointer
Reduce overhead. LightSong can always point to the "real" allocated string.
This commit is contained in:
@@ -48,13 +48,13 @@ struct LightSong {
|
||||
|
||||
/**
|
||||
* The "real" URI, the one to be used for opening the
|
||||
* resource. If this attribute is empty, then #uri (and
|
||||
* resource. If this attribute is nullptr, then #uri (and
|
||||
* #directory) shall be used.
|
||||
*
|
||||
* This attribute is used for songs from the database which
|
||||
* have a relative URI.
|
||||
*/
|
||||
std::string real_uri;
|
||||
const char *real_uri;
|
||||
|
||||
/**
|
||||
* Must not be nullptr.
|
||||
|
Reference in New Issue
Block a user