diff options
author | Max Kellermann <max@duempel.org> | 2013-10-19 18:48:38 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-19 18:48:38 +0200 |
commit | ff626ac76357940b2f0ac5cb243a68ac13df0f8a (patch) | |
tree | 493888a28950f75f5e254c0ded9dc9703ee83dc3 /src/PlaylistFile.cxx | |
parent | 59f8144c50765189594d5932fc25869f9ea6e265 (diff) | |
download | mpd-ff626ac76357940b2f0ac5cb243a68ac13df0f8a.tar.gz mpd-ff626ac76357940b2f0ac5cb243a68ac13df0f8a.tar.xz mpd-ff626ac76357940b2f0ac5cb243a68ac13df0f8a.zip |
*: use references instead of pointers
Diffstat (limited to '')
-rw-r--r-- | src/PlaylistFile.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PlaylistFile.cxx b/src/PlaylistFile.cxx index 68e0cfcf1..5e14e7ec7 100644 --- a/src/PlaylistFile.cxx +++ b/src/PlaylistFile.cxx @@ -365,7 +365,7 @@ spl_remove_index(const char *utf8path, unsigned pos, Error &error) } bool -spl_append_song(const char *utf8path, Song *song, Error &error) +spl_append_song(const char *utf8path, const Song &song, Error &error) { if (spl_map(error).IsNull()) return false; @@ -407,7 +407,7 @@ spl_append_uri(const char *url, const char *utf8file, Error &error) { if (uri_has_scheme(url)) { Song *song = Song::NewRemote(url); - bool success = spl_append_song(utf8file, song, error); + bool success = spl_append_song(utf8file, *song, error); song->Free(); return success; } else { @@ -419,7 +419,7 @@ spl_append_uri(const char *url, const char *utf8file, Error &error) if (song == nullptr) return false; - bool success = spl_append_song(utf8file, song, error); + bool success = spl_append_song(utf8file, *song, error); db->ReturnSong(song); return success; } |