diff options
| author | Lexi Winter <lexi@le-fay.org> | 2025-06-29 17:16:22 +0100 |
|---|---|---|
| committer | Lexi Winter <lexi@le-fay.org> | 2025-06-29 17:16:22 +0100 |
| commit | 4fa6821e0645ff61a9380cd090abff472205c630 (patch) | |
| tree | bd95f13b2dc0bd9692681f50c365d2914a520bfe /nihil.posix/posix.tempfile.cc | |
| parent | e5180acf5f2dfac788e8c12886095ed1ac66fae5 (diff) | |
| download | nihil-4fa6821e0645ff61a9380cd090abff472205c630.tar.gz nihil-4fa6821e0645ff61a9380cd090abff472205c630.tar.bz2 | |
add clang-tidy support
Diffstat (limited to 'nihil.posix/posix.tempfile.cc')
| -rw-r--r-- | nihil.posix/posix.tempfile.cc | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/nihil.posix/posix.tempfile.cc b/nihil.posix/posix.tempfile.cc index 801aa5e..b1d3dee 100644 --- a/nihil.posix/posix.tempfile.cc +++ b/nihil.posix/posix.tempfile.cc @@ -40,22 +40,7 @@ temporary_file::temporary_file(temporary_file &&other) noexcept { } -auto temporary_file::operator=(this temporary_file &self, - temporary_file &&other) - noexcept -> temporary_file & -{ - if (&self != &other) { - if (self.m_fd) - self.release(); - - self.m_fd = std::move(other.m_fd); - self.m_path = std::move(other.m_path); - } - - return self; -} - -temporary_file::~temporary_file() +temporary_file::~temporary_file() //NOLINT(bugprone-exception-escape) { if (m_fd) release(); |
