Commit d917f44b authored by Max Kellermann's avatar Max Kellermann

Queue: make configuration attributes const

parent 602bb717
...@@ -70,7 +70,7 @@ struct Queue { ...@@ -70,7 +70,7 @@ struct Queue {
}; };
/** configured maximum length of the queue */ /** configured maximum length of the queue */
unsigned max_length; const unsigned max_length;
/** number of songs in the queue */ /** number of songs in the queue */
unsigned length = 0; unsigned length = 0;
...@@ -79,10 +79,10 @@ struct Queue { ...@@ -79,10 +79,10 @@ struct Queue {
uint32_t version = 1; uint32_t version = 1;
/** all songs in "position" order */ /** all songs in "position" order */
Item *items; Item *const items;
/** map order numbers to positions */ /** map order numbers to positions */
unsigned *order; unsigned *const order;
/** map song ids to positions */ /** map song ids to positions */
IdTable id_table; IdTable id_table;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment