@@ -33,7 +33,7 @@ namespace Catch {
3333 namespace {
3434 // ! A no-op implementation, used if no reporter wants output
3535 // ! redirection.
36- class NoopRedirect : public OutputRedirect {
36+ class NoopRedirect final : public OutputRedirect {
3737 void activateImpl () override {}
3838 void deactivateImpl () override {}
3939 std::string getStdout () override { return {}; }
@@ -70,7 +70,7 @@ namespace Catch {
7070 * Redirects the `std::cout`, `std::cerr`, `std::clog` streams,
7171 * but does not touch the actual `stdout`/`stderr` file descriptors.
7272 */
73- class StreamRedirect : public OutputRedirect {
73+ class StreamRedirect final : public OutputRedirect {
7474 ReusableStringStream m_redirectedOut, m_redirectedErr;
7575 RedirectedStreamNew m_cout, m_cerr, m_clog;
7676
@@ -181,7 +181,7 @@ namespace Catch {
181181 * Works by replacing the file descriptors numbered 1 and 2
182182 * with an open temporary file.
183183 */
184- class FileRedirect : public OutputRedirect {
184+ class FileRedirect final : public OutputRedirect {
185185 TempFile m_outFile, m_errFile;
186186 int m_originalOut = -1 ;
187187 int m_originalErr = -1 ;
0 commit comments