From 70652abf9750b62d2b4e5857d894494ae6058cf1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 6 Jan 2013 14:58:54 +0100 Subject: Queue: add constructor and destructor --- test/TestQueuePriority.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test') diff --git a/test/TestQueuePriority.cxx b/test/TestQueuePriority.cxx index b187176e..5a0f6916 100644 --- a/test/TestQueuePriority.cxx +++ b/test/TestQueuePriority.cxx @@ -50,8 +50,7 @@ main(G_GNUC_UNUSED int argc, G_GNUC_UNUSED char **argv) { struct song songs[16]; - struct queue queue; - queue_init(&queue, 32); + struct queue queue(32); for (unsigned i = 0; i < G_N_ELEMENTS(songs); ++i) queue_append(&queue, &songs[i], 0); -- cgit v1.2.3