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++ --- test/test_queue_priority.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test/test_queue_priority.cxx') diff --git a/test/test_queue_priority.cxx b/test/test_queue_priority.cxx index 8dd1c3f5f..2e544253d 100644 --- a/test/test_queue_priority.cxx +++ b/test/test_queue_priority.cxx @@ -1,6 +1,6 @@ #include "config.h" #include "Queue.hxx" -#include "song.h" +#include "Song.hxx" #include "Directory.hxx" #include @@ -10,14 +10,14 @@ Directory detached_root; Directory::Directory() {} Directory::~Directory() {} -struct song * -song_dup_detached(const struct song *src) +Song * +Song::DupDetached() const { - return const_cast(src); + return const_cast(this); } void -song_free(gcc_unused struct song *song) +Song::Free() { } @@ -50,7 +50,7 @@ check_descending_priority(const struct queue *queue, int main(gcc_unused int argc, gcc_unused char **argv) { - static struct song songs[16]; + static Song songs[16]; struct queue queue(32); -- cgit v1.2.3