diff options
| author | JosJuice <josjuice@gmail.com> | 2022-03-05 23:40:01 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2022-03-05 23:40:41 +0100 |
| commit | 5446daaef985dad9a4881c839e3e3d8469dc1368 (patch) | |
| tree | b38056551534723c2520cd4c8d47b9dd7098a6b4 /Source/Core/Common/DynamicLibrary.h | |
| parent | d32c72038ae8be1cb8b047ca3dae99ba7b3626d8 (diff) | |
Common: Make DynamicLibrary non-copyable
The default implementations of DynamicLibrary's copy and move
constructors and assignment operators are unsafe.
Diffstat (limited to 'Source/Core/Common/DynamicLibrary.h')
| -rw-r--r-- | Source/Core/Common/DynamicLibrary.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/Common/DynamicLibrary.h b/Source/Core/Common/DynamicLibrary.h index 775afce56c..edfcde8ff3 100644 --- a/Source/Core/Common/DynamicLibrary.h +++ b/Source/Core/Common/DynamicLibrary.h @@ -24,6 +24,12 @@ public: // Closes the library. ~DynamicLibrary(); + DynamicLibrary(const DynamicLibrary&) = delete; + DynamicLibrary(DynamicLibrary&&) = delete; + + DynamicLibrary& operator=(const DynamicLibrary&) = delete; + DynamicLibrary& operator=(DynamicLibrary&&) = delete; + // Returns the specified library name with the platform-specific suffix added. static std::string GetUnprefixedFilename(const char* filename); |
