VideoCommon: fix some compiler warnings for CustomAsset. FreeBSD compiler complained about a defaulted move constructor due to the mutex being implicitly deleted. Additionally, the const owning library deleted the copy constructor.

This commit is contained in:
iwubcode 2023-07-16 19:44:15 -05:00 committed by Nayla Hanegan
commit 5f61f8a7b7
No known key found for this signature in database
GPG key ID: 3075216CED0DB01D

View file

@ -20,10 +20,10 @@ public:
CustomAsset(std::shared_ptr<CustomAssetLibrary> library,
const CustomAssetLibrary::AssetID& asset_id);
virtual ~CustomAsset() = default;
CustomAsset(const CustomAsset&) = default;
CustomAsset(CustomAsset&&) = default;
CustomAsset& operator=(const CustomAsset&) = default;
CustomAsset& operator=(CustomAsset&&) = default;
CustomAsset(const CustomAsset&) = delete;
CustomAsset(CustomAsset&&) = delete;
CustomAsset& operator=(const CustomAsset&) = delete;
CustomAsset& operator=(CustomAsset&&) = delete;
// Loads the asset from the library returning a pass/fail result
bool Load();