Queue: make configuration attributes const
This commit is contained in:
parent
602bb7170a
commit
d917f44b5b
@ -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 {
|
|||||||
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user