From 4de5c216ff62136f4c721352f83589d42edf71c7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 23 Nov 2016 17:57:29 +0100 Subject: [PATCH] MusicChunk: disallow copying --- src/MusicChunk.hxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MusicChunk.hxx b/src/MusicChunk.hxx index f8ea3621f..8b973d447 100644 --- a/src/MusicChunk.hxx +++ b/src/MusicChunk.hxx @@ -95,8 +95,12 @@ struct MusicChunk { MusicChunk() = default; + MusicChunk(const MusicChunk &) = delete; + ~MusicChunk(); + MusicChunk &operator=(const MusicChunk &) = delete; + bool IsEmpty() const { return length == 0 && tag == nullptr; }