diff options
author | Max Kellermann <max@duempel.org> | 2014-01-20 08:57:22 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-20 08:57:46 +0100 |
commit | ab9c9068d4fa9b083daa17582987b846c6c985d4 (patch) | |
tree | b4f07b96874cee5c1a0b04b7746745b71f15d313 /src/Queue.hxx | |
parent | 6b4d7d7315701945a6c34270a894879b068e5d8d (diff) | |
download | mpd-ab9c9068d4fa9b083daa17582987b846c6c985d4.tar.gz mpd-ab9c9068d4fa9b083daa17582987b846c6c985d4.tar.xz mpd-ab9c9068d4fa9b083daa17582987b846c6c985d4.zip |
Queue: rename struct queue to Queue
Works around a build failure on Solaris because annoyingly, Solaris
reserves the name "queue". This rename was pending anyway.
Diffstat (limited to 'src/Queue.hxx')
-rw-r--r-- | src/Queue.hxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Queue.hxx b/src/Queue.hxx index 48ee69cc8..3c6001b4f 100644 --- a/src/Queue.hxx +++ b/src/Queue.hxx @@ -41,7 +41,7 @@ struct Song; * - 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; - explicit 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); |