diff --git a/test/scan.h b/test/scan.h index 7e3400432bc3..15a80356e9c7 100644 --- a/test/scan.h +++ b/test/scan.h @@ -142,7 +142,7 @@ class scan_buffer { using scan_iterator = scan_buffer::iterator; using scan_sentinel = scan_buffer::sentinel; -class string_scan_buffer : public scan_buffer { +class string_scan_buffer final : public scan_buffer { private: void consume() override {} @@ -151,7 +151,7 @@ class string_scan_buffer : public scan_buffer { : scan_buffer(s.begin(), s.end(), true) {} }; -class file_scan_buffer : public scan_buffer { +class file_scan_buffer final : public scan_buffer { private: template static auto get_file(F* f, int) -> glibc_file {