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