Merge pull request #480 from jpcima/file-data-copy-delete

Fix a compilation warning, about FileData not copyable
This commit is contained in:
JP Cimalando 2020-10-07 14:45:05 +02:00 committed by GitHub
commit ebc47e2c48
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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...