summaryrefslogtreecommitdiff
path: root/src/queue
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2017-06-04 12:57:05 +0200
committerMax Kellermann <max@musicpd.org>2017-06-04 12:57:05 +0200
commit979f1b6c39b64770f42ed125c0abf80f4938fdb5 (patch)
tree3d254376552957afc6c6c77661a60954a83e41ce /src/queue
parent1fa1790da5a7fb1bd4a5deef36b7ed8d9c60acbc (diff)
parentcf86dfd3178bcdffbb2968cda4ad9c271ffdc4f3 (diff)
Merge tag 'v0.20.9'
release v0.20.9
Diffstat (limited to 'src/queue')
-rw-r--r--src/queue/Queue.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/queue/Queue.hxx b/src/queue/Queue.hxx
index 805c2f4de..bd2f95c1a 100644
--- a/src/queue/Queue.hxx
+++ b/src/queue/Queue.hxx
@@ -162,14 +162,14 @@ struct Queue {
}
gcc_pure
- unsigned OrderToPosition(unsigned _order) const {
+ unsigned OrderToPosition(unsigned _order) const noexcept {
assert(_order < length);
return order[_order];
}
gcc_pure
- unsigned PositionToOrder(unsigned position) const {
+ unsigned PositionToOrder(unsigned position) const noexcept {
assert(position < length);
for (unsigned i = 0;; ++i) {
@@ -181,7 +181,7 @@ struct Queue {
}
gcc_pure
- uint8_t GetPriorityAtPosition(unsigned position) const {
+ uint8_t GetPriorityAtPosition(unsigned position) const noexcept {
assert(position < length);
return items[position].priority;