From d917f44b5b9f75102f2c12208b08c9d3395df982 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 26 Nov 2017 12:22:50 +0100 Subject: [PATCH] Queue: make configuration attributes const --- src/queue/Queue.hxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/queue/Queue.hxx b/src/queue/Queue.hxx index 66ecc5a0b..8495d8330 100644 --- a/src/queue/Queue.hxx +++ b/src/queue/Queue.hxx @@ -70,7 +70,7 @@ struct Queue { }; /** configured maximum length of the queue */ - unsigned max_length; + const unsigned max_length; /** number of songs in the queue */ unsigned length = 0; @@ -79,10 +79,10 @@ struct Queue { uint32_t version = 1; /** all songs in "position" order */ - Item *items; + Item *const items; /** map order numbers to positions */ - unsigned *order; + unsigned *const order; /** map song ids to positions */ IdTable id_table;