Queue: add method ModifyAtPosition()
This commit is contained in:
parent
03b57df630
commit
fc05768374
@ -82,7 +82,7 @@ queue::ModifyAtOrder(unsigned _order)
|
||||
assert(_order < length);
|
||||
|
||||
unsigned position = order[_order];
|
||||
items[position].version = version;
|
||||
ModifyAtPosition(position);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -240,6 +240,17 @@ struct queue {
|
||||
*/
|
||||
void IncrementVersion();
|
||||
|
||||
/**
|
||||
* Marks the specified song as "modified". Call
|
||||
* IncrementVersion() after all modifications have been made.
|
||||
* number.
|
||||
*/
|
||||
void ModifyAtPosition(unsigned position) {
|
||||
assert(position < length);
|
||||
|
||||
items[position].version = version;
|
||||
}
|
||||
|
||||
/**
|
||||
* Marks the specified song as "modified". Call
|
||||
* IncrementVersion() after all modifications have been made.
|
||||
|
Loading…
Reference in New Issue
Block a user