@@ -36,30 +36,30 @@ class test_streambuf : public std::streambuf
36
36
37
37
protected:
38
38
/* Simulate some kind of streambuf impl that doesn't setg() */
39
- virtual int_type underflow () override final
39
+ int_type underflow () final
40
40
{
41
41
++underflow_calls;
42
42
if (ofs >= (sizeof (buf)-1 ))
43
43
return traits_type::eof ();
44
44
return traits_type::to_int_type (buf[ofs]);
45
45
}
46
46
47
- virtual int_type uflow () override final
47
+ int_type uflow () final
48
48
{
49
49
++uflow_calls;
50
50
if (ofs >= (sizeof (buf)-1 ))
51
51
return traits_type::eof ();
52
52
return traits_type::to_int_type (buf[ofs++]);
53
53
}
54
54
55
- virtual std::streamsize showmanyc () override final
55
+ std::streamsize showmanyc () final
56
56
{
57
57
if (ofs >= (sizeof (buf)-1 ))
58
58
return traits_type::eof ();
59
59
return sizeof (buf)-1 -ofs;
60
60
}
61
61
62
- virtual std::streamsize xsgetn (char_type* s, std::streamsize count) override final
62
+ std::streamsize xsgetn (char_type* s, std::streamsize count) final
63
63
{
64
64
auto n = std::min (count, static_cast <std::streamsize>(sizeof (buf)-1 -ofs));
65
65
memcpy (s, buf + ofs, n);
@@ -80,11 +80,11 @@ class MySaxParser : public xmlpp::SaxParser {
80
80
public:
81
81
bool saw_root = false ;
82
82
protected:
83
- virtual void on_start_document () override final
83
+ void on_start_document () final
84
84
{
85
85
saw_root = false ;
86
86
}
87
- virtual void on_end_element (const xmlpp::ustring &name) override final
87
+ void on_end_element (const xmlpp::ustring &name) final
88
88
{
89
89
if (name == " root" )
90
90
saw_root = true ;
0 commit comments