Commit c5a56456 authored by Matthias Vallentin's avatar Matthias Vallentin

Do not expose protected API

parent 230490a1
...@@ -86,9 +86,7 @@ public: ...@@ -86,9 +86,7 @@ public:
return *this; return *this;
} }
/// Replaces the internal character sequence with a new one. protected:
/// @param s A pointer to the first character.
/// @param n The length of the character sequence.
std::basic_streambuf<CharT, Traits>* std::basic_streambuf<CharT, Traits>*
setbuf(CharT* s, std::streamsize n) override { setbuf(CharT* s, std::streamsize n) override {
this->setg(s, s, s + n); this->setg(s, s, s + n);
...@@ -96,7 +94,6 @@ public: ...@@ -96,7 +94,6 @@ public:
return this; return this;
} }
protected:
std::streamsize xsputn(const char_type* s, std::streamsize n) override { std::streamsize xsputn(const char_type* s, std::streamsize n) override {
auto available = this->epptr() - this->pptr(); auto available = this->epptr() - this->pptr();
auto actual = std::min(n, static_cast<std::streamsize>(available)); auto actual = std::min(n, static_cast<std::streamsize>(available));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment