MCPcopy Create free account
hub / github.com/MusicPlayerDaemon/MPD / MoveOrderAfter

Method MoveOrderAfter

src/queue/Queue.cxx:219–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219unsigned
220Queue::MoveOrderAfter(unsigned from_order, unsigned to_order) noexcept
221{
222 /* if "from_order" comes after "to_order", then the new
223 position is "to_order+1"; otherwise the "to_order" song is
224 moved one back */
225 return MoveOrder(from_order, to_order + (from_order > to_order));
226}
227
228void
229Queue::DeletePosition(unsigned position) noexcept

Callers 1

MoveOrderToCurrentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected