aboutsummaryrefslogtreecommitdiffstats
path: root/src/Song.hxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Song.hxx9
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;