Remove unnecessary final and apply clang-format

This commit is contained in:
Victor Zverovich
2024-01-07 13:08:17 -08:00
parent 7d73ef85f7
commit c1d9e88402
3 changed files with 14 additions and 17 deletions
+1 -2
View File
@@ -932,7 +932,7 @@ enum { inline_buffer_size = 500 };
*/
template <typename T, size_t SIZE = inline_buffer_size,
typename Allocator = std::allocator<T>>
class basic_memory_buffer final : public detail::buffer<T> {
class basic_memory_buffer : public detail::buffer<T> {
private:
T store_[SIZE];
@@ -945,7 +945,6 @@ class basic_memory_buffer final : public detail::buffer<T> {
if (data != store_) alloc_.deallocate(data, this->capacity());
}
protected:
static FMT_CONSTEXPR20 void grow(detail::buffer<T>& buf, size_t size) {
detail::abort_fuzzing_if(size > 5000);
auto& self = static_cast<basic_memory_buffer&>(buf);