aboutsummaryrefslogtreecommitdiffstats
path: root/test/TestQueuePriority.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/TestQueuePriority.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/TestQueuePriority.cxx b/test/TestQueuePriority.cxx
index b187176e7..5a0f69167 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);