mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-17 16:12:17 +00:00
Remove redundand final
This commit is contained in:
parent
bf20d19901
commit
42a225cbd9
@ -861,7 +861,7 @@ class iterator_buffer final : public Traits, public buffer<T> {
|
||||
T data_[buffer_size];
|
||||
|
||||
protected:
|
||||
void grow(size_t) final FMT_OVERRIDE {
|
||||
void grow(size_t) FMT_OVERRIDE {
|
||||
if (this->size() == buffer_size) flush();
|
||||
}
|
||||
|
||||
@ -887,7 +887,7 @@ class iterator_buffer final : public Traits, public buffer<T> {
|
||||
|
||||
template <typename T> class iterator_buffer<T*, T> final : public buffer<T> {
|
||||
protected:
|
||||
void grow(size_t) final FMT_OVERRIDE {}
|
||||
void grow(size_t) FMT_OVERRIDE {}
|
||||
|
||||
public:
|
||||
explicit iterator_buffer(T* out, size_t = 0) : buffer<T>(out, 0, ~size_t()) {}
|
||||
@ -905,7 +905,7 @@ class iterator_buffer<std::back_insert_iterator<Container>,
|
||||
Container& container_;
|
||||
|
||||
protected:
|
||||
void grow(size_t capacity) final FMT_OVERRIDE {
|
||||
void grow(size_t capacity) FMT_OVERRIDE {
|
||||
container_.resize(capacity);
|
||||
this->set(&container_[0], capacity);
|
||||
}
|
||||
@ -928,7 +928,7 @@ template <typename T = char> class counting_buffer final : public buffer<T> {
|
||||
size_t count_ = 0;
|
||||
|
||||
protected:
|
||||
void grow(size_t) final FMT_OVERRIDE {
|
||||
void grow(size_t) FMT_OVERRIDE {
|
||||
if (this->size() != buffer_size) return;
|
||||
count_ += this->size();
|
||||
this->clear();
|
||||
|
@ -657,7 +657,7 @@ class basic_memory_buffer final : public detail::buffer<T> {
|
||||
}
|
||||
|
||||
protected:
|
||||
void grow(size_t size) final FMT_OVERRIDE;
|
||||
void grow(size_t size) FMT_OVERRIDE;
|
||||
|
||||
public:
|
||||
using value_type = T;
|
||||
|
Loading…
Reference in New Issue
Block a user