this change also silences the warnings like:
src/common/StackStringStream.h:75:7: warning: 'overflow' overrides a member function but is not marked 'override' [-Winconsistent-missing-override]
int overflow(int c)
^
Signed-off-by: Kefu Chai <kchai@redhat.com>
}
protected:
- std::streamsize xsputn(const char *s, std::streamsize n)
+ std::streamsize xsputn(const char *s, std::streamsize n) final
{
std::streamsize capacity = epptr() - pptr();
std::streamsize left = n;
return n;
}
- int overflow(int c)
+ int overflow(int c) final
{
if (traits_type::not_eof(c)) {
char str = traits_type::to_char_type(c);