mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 23:59:27 +01:00
Common: Make DynamicLibrary non-copyable
The default implementations of DynamicLibrary's copy and move constructors and assignment operators are unsafe.
This commit is contained in:
parent
d32c72038a
commit
5446daaef9
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user