aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-06 14:58:54 +0100
committerMax Kellermann <max@duempel.org>2013-01-06 18:59:39 +0100
commit70652abf9750b62d2b4e5857d894494ae6058cf1 (patch)
treeba38fec9699eb2094cb2dda7a6f3f9dbb427a709 /test
parente202b407ec18570ad54a04c64341f654b447fb31 (diff)
Queue: add constructor and destructor
Diffstat (limited to 'test')
-rw-r--r--test/TestQueuePriority.cxx3
1 files changed, 1 insertions, 2 deletions
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);