MusicChunk: disallow copying

This commit is contained in:
Max Kellermann 2016-11-23 17:57:29 +01:00
parent ad2c7304ea
commit 4de5c216ff

View File

@ -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;
}