diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-01 23:04:25 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-01 23:04:25 -0500 |
commit | 3a18a6dcab45467e779e91c7b346aa3b148e8b9c (patch) | |
tree | ba0d7d521179c2d3fbd7d989eb2033cd2a86dbaf /source/fud_directory.cpp | |
parent | 4ef88103f74a3a6e8e36ae9eff80f641e20bd1a1 (diff) |
Fix move assignment operators or delete them to prevent leaks.
Diffstat (limited to 'source/fud_directory.cpp')
-rw-r--r-- | source/fud_directory.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/source/fud_directory.cpp b/source/fud_directory.cpp index 6df5bcc..6851158 100644 --- a/source/fud_directory.cpp +++ b/source/fud_directory.cpp @@ -115,18 +115,6 @@ Directory::Directory(Directory&& rhs) : rhs.m_dirFd = -1; } -Directory& Directory::operator=(Directory&& rhs) -{ - m_name = std::move(rhs.m_name); - m_directory = rhs.m_directory; - m_dirFd = rhs.m_dirFd; - - rhs.m_directory = nullptr; - rhs.m_dirFd = -1; - - return *this; -} - Directory::~Directory() { if (m_directory != nullptr) { |