From e75f9b8e38c9ca63f94e4cf9b4524ee89c14cb83 Mon Sep 17 00:00:00 2001 From: Ihor Dutchak Date: Fri, 14 Oct 2022 11:42:46 +0300 Subject: [PATCH] Remove v-table anchor for detail::ostream_buffer --- include/fmt/os.h | 4 +++- src/os.cc | 4 ---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/fmt/os.h b/include/fmt/os.h index 38664950..2a7ebead 100644 --- a/include/fmt/os.h +++ b/include/fmt/os.h @@ -382,7 +382,9 @@ struct ostream_params { class ostream_buffer final : public detail::buffer { file file_; - FMT_API void grow(size_t) override; + void grow(size_t) override { + if (this->size() == this->capacity()) flush(); + } public: ostream_buffer(cstring_view path, const detail::ostream_params& params) diff --git a/src/os.cc b/src/os.cc index c40fdaea..06f400df 100644 --- a/src/os.cc +++ b/src/os.cc @@ -366,10 +366,6 @@ long getpagesize() { # endif } -FMT_API void detail::ostream_buffer::grow(size_t) { - if (this->size() == this->capacity()) flush(); -} - ostream::~ostream() = default; #endif // FMT_USE_FCNTL FMT_END_NAMESPACE