From 4fa6821e0645ff61a9380cd090abff472205c630 Mon Sep 17 00:00:00 2001 From: Lexi Winter Date: Sun, 29 Jun 2025 17:16:22 +0100 Subject: add clang-tidy support --- nihil.posix/posix.tempfile.cc | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'nihil.posix/posix.tempfile.cc') 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(); -- cgit v1.2.3