mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-07 17:41:11 +00:00
[clang-tidy] Add missing override
Found with hicpp-use-override Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
87cd545a1e
commit
6868f888b2
@ -578,7 +578,7 @@ class basic_memory_buffer : private Allocator, public internal::buffer<T> {
|
||||
: Allocator(alloc) {
|
||||
this->set(store_, SIZE);
|
||||
}
|
||||
~basic_memory_buffer() { deallocate(); }
|
||||
~basic_memory_buffer() FMT_OVERRIDE { deallocate(); }
|
||||
|
||||
private:
|
||||
// Move data from other to this buffer.
|
||||
@ -658,7 +658,7 @@ class FMT_API format_error : public std::runtime_error {
|
||||
format_error& operator=(const format_error&) = default;
|
||||
format_error(format_error&&) = default;
|
||||
format_error& operator=(format_error&&) = default;
|
||||
~format_error() FMT_NOEXCEPT;
|
||||
~format_error() FMT_NOEXCEPT FMT_OVERRIDE;
|
||||
};
|
||||
|
||||
namespace internal {
|
||||
@ -2752,7 +2752,7 @@ class FMT_API system_error : public std::runtime_error {
|
||||
system_error& operator=(const system_error&) = default;
|
||||
system_error(system_error&&) = default;
|
||||
system_error& operator=(system_error&&) = default;
|
||||
~system_error() FMT_NOEXCEPT;
|
||||
~system_error() FMT_NOEXCEPT FMT_OVERRIDE;
|
||||
|
||||
int error_code() const { return error_code_; }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user