aboutsummaryrefslogtreecommitdiffstats
path: root/src/Queue.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-01-20 09:05:36 +0100
committerMax Kellermann <max@duempel.org>2014-01-20 09:05:36 +0100
commit2f51285349316c2971d619b6c3c0e2eb485c16cf (patch)
tree6d4aaa7890ac8d06c3113e09ce34ee5d800005a4 /src/Queue.hxx
parent64465c1318e227ca625ee2047ec8b6a8f0c2faff (diff)
parentab9c9068d4fa9b083daa17582987b846c6c985d4 (diff)
downloadmpd-2f51285349316c2971d619b6c3c0e2eb485c16cf.tar.gz
mpd-2f51285349316c2971d619b6c3c0e2eb485c16cf.tar.xz
mpd-2f51285349316c2971d619b6c3c0e2eb485c16cf.zip
Merge branch 'v0.18.x'
Diffstat (limited to 'src/Queue.hxx')
-rw-r--r--src/Queue.hxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Queue.hxx b/src/Queue.hxx
index ce4bdd11a..016619e65 100644
--- a/src/Queue.hxx
+++ b/src/Queue.hxx
@@ -41,7 +41,7 @@ class DetachedSong;
* - the unique id (which stays the same, regardless of moves)
* - the order number (which only differs from "position" in random mode)
*/
-struct queue {
+struct Queue {
/**
* reserve max_length * HASH_MULT elements in the id
* number space
@@ -103,16 +103,16 @@ struct queue {
/** random number generator for shuffle and random mode */
LazyRandomEngine rand;
- queue(unsigned max_length);
+ explicit Queue(unsigned max_length);
/**
* Deinitializes a queue object. It does not free the queue
* pointer itself.
*/
- ~queue();
+ ~Queue();
- queue(const queue &other) = delete;
- queue &operator=(const queue &other) = delete;
+ Queue(const Queue &) = delete;
+ Queue &operator=(const Queue &) = delete;
unsigned GetLength() const {
assert(length <= max_length);