Fix a compilation warning, about FileData not copyable

This commit is contained in:
Jean Pierre Cimalando 2020-10-07 14:41:16 +02:00
parent 2fc6aab964
commit 3aeb96d3b2

View file

@ -80,8 +80,8 @@ struct FileData
return AudioSpan<const float>(preloadedData); return AudioSpan<const float>(preloadedData);
} }
FileData(const FileData& other) = default; FileData(const FileData& other) = delete;
FileData& operator=(const FileData& other) = default; FileData& operator=(const FileData& other) = delete;
FileData(FileData&& other) FileData(FileData&& other)
{ {
ASSERT(other.readerCount == 0); // Probably should not be moving this... ASSERT(other.readerCount == 0); // Probably should not be moving this...