From 868bf752f3906155dfbaba9b72637c770da63aa6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 23 Nov 2016 18:06:15 +0100 Subject: MusicPipe: disallow copying --- src/MusicPipe.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/MusicPipe.hxx') diff --git a/src/MusicPipe.hxx b/src/MusicPipe.hxx index 07f69f3ad..0ee340aa0 100644 --- a/src/MusicPipe.hxx +++ b/src/MusicPipe.hxx @@ -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 -- cgit v1.2.3