aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/LightSong.hxx
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/LightSong.hxx
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 'src/db/LightSong.hxx')
-rw-r--r--src/db/LightSong.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/db/LightSong.hxx b/src/db/LightSong.hxx
index c0cd47749..add9da855 100644
--- a/src/db/LightSong.hxx
+++ b/src/db/LightSong.hxx
@@ -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.