Skip to content

Commit

Permalink
Stylefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
bugdea1er committed Jan 27, 2024
1 parent bda6622 commit 024c05e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion include/tmp/directory.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions include/tmp/file.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,15 @@ 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
file(const file&) = delete; ///< not copy-constructible
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
Expand Down
2 changes: 1 addition & 1 deletion include/tmp/path.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 024c05e

Please sign in to comment.