aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.posix/posix.tempfile.cc
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-fay.org>2025-06-29 17:16:22 +0100
committerLexi Winter <lexi@le-fay.org>2025-06-29 17:16:22 +0100
commit4fa6821e0645ff61a9380cd090abff472205c630 (patch)
treebd95f13b2dc0bd9692681f50c365d2914a520bfe /nihil.posix/posix.tempfile.cc
parente5180acf5f2dfac788e8c12886095ed1ac66fae5 (diff)
downloadnihil-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.cc17
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();