Skip to content

Commit

Permalink
Fix warning C26439
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmy-park authored and vitaut committed Apr 19, 2024
1 parent f746a59 commit f4b256c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/fmt/os.h
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ class file_buffer final : public buffer<char> {

public:
FMT_API file_buffer(cstring_view path, const ostream_params& params);
FMT_API file_buffer(file_buffer&& other);
FMT_API file_buffer(file_buffer&& other) noexcept;
FMT_API ~file_buffer();

void flush() {
Expand Down
2 changes: 1 addition & 1 deletion src/os.cc
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ file_buffer::file_buffer(cstring_view path, const ostream_params& params)
set(new char[params.buffer_size], params.buffer_size);
}

file_buffer::file_buffer(file_buffer&& other)
file_buffer::file_buffer(file_buffer&& other) noexcept
: buffer<char>(grow, other.data(), other.size(), other.capacity()),
file_(std::move(other.file_)) {
other.clear();
Expand Down

0 comments on commit f4b256c

Please sign in to comment.