diff options
author | Max Kellermann <max@duempel.org> | 2013-10-17 01:01:15 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-17 01:01:15 +0200 |
commit | be8ceae6e6c2836233dd8acedd829b18943f820a (patch) | |
tree | f625c58523ccee5c27c082c49e15c2d142d836fb /src/Song.hxx | |
parent | 67ae033de7e769067035f76c992e21d3616bf3fe (diff) | |
download | mpd-be8ceae6e6c2836233dd8acedd829b18943f820a.tar.gz mpd-be8ceae6e6c2836233dd8acedd829b18943f820a.tar.xz mpd-be8ceae6e6c2836233dd8acedd829b18943f820a.zip |
Song: GetURI() returns std::string
Diffstat (limited to 'src/Song.hxx')
-rw-r--r-- | src/Song.hxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/Song.hxx b/src/Song.hxx index e5bb28008..cafa17fd8 100644 --- a/src/Song.hxx +++ b/src/Song.hxx @@ -23,6 +23,8 @@ #include "util/list.h" #include "Compiler.h" +#include <string> + #include <assert.h> #include <sys/time.h> @@ -126,12 +128,9 @@ struct Song { /** * Returns the URI of the song in UTF-8 encoding, including its * location within the music directory. - * - * The return value is allocated on the heap, and must be freed by the - * caller. */ - gcc_malloc - char *GetURI() const; + gcc_pure + std::string GetURI() const; gcc_pure double GetDuration() const; |