diff options
| author | Martin Hořeňovský | 2023-03-20 22:56:43 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2023-03-20 22:56:43 +0100 |
| commit | 2598116aa640b012d42900bb565a7f1bfae5152e (patch) | |
| tree | add02a7d415c46716c12983542f37edc6720cc51 /src/catch2/internal/catch_istream.cpp | |
| parent | 173aa3f1f401ce1165ec9307d249dc506a976c3e (diff) | |
| download | catch3-2598116aa640b012d42900bb565a7f1bfae5152e.tar.gz | |
Mark various anonymous classes final
Diffstat (limited to 'src/catch2/internal/catch_istream.cpp')
| -rw-r--r-- | src/catch2/internal/catch_istream.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/catch2/internal/catch_istream.cpp b/src/catch2/internal/catch_istream.cpp index 489396ec..bf0f66e4 100644 --- a/src/catch2/internal/catch_istream.cpp +++ b/src/catch2/internal/catch_istream.cpp @@ -24,7 +24,7 @@ namespace Catch { namespace Detail { namespace { template<typename WriterF, std::size_t bufferSize=256> - class StreamBufImpl : public std::streambuf { + class StreamBufImpl final : public std::streambuf { char data[bufferSize]; WriterF m_writer; @@ -72,7 +72,7 @@ namespace Detail { /////////////////////////////////////////////////////////////////////////// - class FileStream : public IStream { + class FileStream final : public IStream { std::ofstream m_ofs; public: FileStream( std::string const& filename ) { @@ -89,7 +89,7 @@ namespace Detail { /////////////////////////////////////////////////////////////////////////// - class CoutStream : public IStream { + class CoutStream final : public IStream { std::ostream m_os; public: // Store the streambuf from cout up-front because @@ -118,7 +118,7 @@ namespace Detail { /////////////////////////////////////////////////////////////////////////// - class DebugOutStream : public IStream { + class DebugOutStream final : public IStream { Detail::unique_ptr<StreamBufImpl<OutputDebugWriter>> m_streamBuf; std::ostream m_os; public: |