From ba161ec572b98d3bcf9f735ff122133319fe896a Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 28 Jul 2013 13:25:12 +0200 Subject: song: convert header to C++ --- src/PlaylistControl.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/PlaylistControl.cxx') diff --git a/src/PlaylistControl.cxx b/src/PlaylistControl.cxx index 3db61cc7c..5b33486e3 100644 --- a/src/PlaylistControl.cxx +++ b/src/PlaylistControl.cxx @@ -25,7 +25,7 @@ #include "config.h" #include "Playlist.hxx" #include "PlayerControl.hxx" -#include "song.h" +#include "Song.hxx" #include @@ -198,7 +198,7 @@ playlist::SeekSongPosition(player_control &pc, unsigned song, float seek_time) if (!queue.IsValidPosition(song)) return PLAYLIST_RESULT_BAD_RANGE; - const struct song *queued_song = GetQueuedSong(); + const Song *queued_song = GetQueuedSong(); unsigned i = queue.random ? queue.PositionToOrder(song) @@ -218,7 +218,7 @@ playlist::SeekSongPosition(player_control &pc, unsigned song, float seek_time) queued_song = nullptr; } - struct song *the_song = song_dup_detached(queue.GetOrder(i)); + Song *the_song = queue.GetOrder(i)->DupDetached(); if (!pc.Seek(the_song, seek_time)) { UpdateQueuedSong(pc, queued_song); -- cgit v1.2.3