Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10494 from JosJuice/dynamiclibrary-rule-of-five
Common: Make DynamicLibrary non-copyable
  • Loading branch information
AdmiralCurtiss committed Mar 6, 2022
2 parents d32c720 + 5446daa commit 9af9e79
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/Core/Common/DynamicLibrary.h
Expand Up @@ -24,6 +24,12 @@ class DynamicLibrary final
// 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);

Expand Down

0 comments on commit 9af9e79

Please sign in to comment.