diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2023-07-16 19:44:15 -0500 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2023-07-16 19:45:55 -0500 |
| commit | 79f202ea5cfa6c10d3c822a1143943fa34fce173 (patch) | |
| tree | 5c301257ff13c10e7189a49ba58f7d3bfe1cdfce /Source/Core | |
| parent | 9ebfcebddee0840e3cd86b090f892393efdba303 (diff) | |
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.
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/VideoCommon/Assets/CustomAsset.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/Assets/CustomAsset.h b/Source/Core/VideoCommon/Assets/CustomAsset.h index 9a11a49365..ea4a182932 100644 --- a/Source/Core/VideoCommon/Assets/CustomAsset.h +++ b/Source/Core/VideoCommon/Assets/CustomAsset.h @@ -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(); |
