mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-19 20:18:49 +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];
|
T data_[buffer_size];
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void grow(size_t) final FMT_OVERRIDE {
|
void grow(size_t) FMT_OVERRIDE {
|
||||||
if (this->size() == buffer_size) flush();
|
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> {
|
template <typename T> class iterator_buffer<T*, T> final : public buffer<T> {
|
||||||
protected:
|
protected:
|
||||||
void grow(size_t) final FMT_OVERRIDE {}
|
void grow(size_t) FMT_OVERRIDE {}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit iterator_buffer(T* out, size_t = 0) : buffer<T>(out, 0, ~size_t()) {}
|
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_;
|
Container& container_;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void grow(size_t capacity) final FMT_OVERRIDE {
|
void grow(size_t capacity) FMT_OVERRIDE {
|
||||||
container_.resize(capacity);
|
container_.resize(capacity);
|
||||||
this->set(&container_[0], 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;
|
size_t count_ = 0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void grow(size_t) final FMT_OVERRIDE {
|
void grow(size_t) FMT_OVERRIDE {
|
||||||
if (this->size() != buffer_size) return;
|
if (this->size() != buffer_size) return;
|
||||||
count_ += this->size();
|
count_ += this->size();
|
||||||
this->clear();
|
this->clear();
|
||||||
|
@ -657,7 +657,7 @@ class basic_memory_buffer final : public detail::buffer<T> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void grow(size_t size) final FMT_OVERRIDE;
|
void grow(size_t size) FMT_OVERRIDE;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
using value_type = T;
|
using value_type = T;
|
||||||
|
Loading…
Reference in New Issue
Block a user