From 3a18a6dcab45467e779e91c7b346aa3b148e8b9c Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Tue, 1 Oct 2024 23:04:25 -0500 Subject: Fix move assignment operators or delete them to prevent leaks. --- source/fud_directory.cpp | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'source/fud_directory.cpp') 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) { -- cgit v1.2.3