diff --git a/include/tmp/directory.hpp b/include/tmp/directory.hpp index 759008e..5c71259 100644 --- a/include/tmp/directory.hpp +++ b/include/tmp/directory.hpp @@ -52,7 +52,7 @@ class directory final : public path { } /// Deletes this directory recursively when the enclosing scope is exited - ~directory() noexcept = default; + ~directory() noexcept override = default; directory(directory&&) noexcept = default; ///< move-constructible directory& operator=(directory&&) noexcept = default; ///< move-assignable diff --git a/include/tmp/file.hpp b/include/tmp/file.hpp index ea52eb6..6764f67 100644 --- a/include/tmp/file.hpp +++ b/include/tmp/file.hpp @@ -72,7 +72,7 @@ class file final : public path { } /// Deletes this file when the enclosing scope is exited - ~file() noexcept = default; + ~file() noexcept override = default; file(file&&) noexcept = default; ///< move-constructible file& operator=(file&&) noexcept = default; ///< move-assignable @@ -80,7 +80,7 @@ class file final : public path { auto operator=(const file&) = delete; ///< not copy-assignable private: - bool binary; ///< This file write mode + bool binary; ///< This file write mode /// Creates a unique temporary file using the system's default location /// for temporary files. If a prefix is provided to the constructor, the diff --git a/include/tmp/path.hpp b/include/tmp/path.hpp index c1f9573..de42cf1 100644 --- a/include/tmp/path.hpp +++ b/include/tmp/path.hpp @@ -32,7 +32,7 @@ class path { public: /// Creates a path from a moved @p other - path(path&& other) noexcept: p(std::move(other.p)) { + path(path&& other) noexcept : p(std::move(other.p)) { other.p.clear(); }