MusicPipe: disallow copying

This commit is contained in:
Max Kellermann 2016-11-23 18:06:15 +01:00
parent 051cdc9670
commit 868bf752f3

View File

@ -59,6 +59,8 @@ public:
*/
MusicPipe() = default;
MusicPipe(const MusicPipe &) = delete;
/**
* Frees the object. It must be empty now.
*/
@ -67,6 +69,8 @@ public:
assert(tail_r == &head);
}
MusicPipe &operator=(const MusicPipe &) = delete;
#ifndef NDEBUG
/**
* Checks if the audio format if the chunk is equal to the specified