diff options
author | Jack Lloyd <[email protected]> | 2017-09-22 11:38:42 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2017-09-22 11:38:42 -0400 |
commit | 27482d71e00dcf106735ef824ded70cf25c6150f (patch) | |
tree | 60ee512ff6eed74051718920eb126c30c854e322 /src/lib/compression | |
parent | a2e70c4eb74d016d8b3c783b4964cfc5ea2b7ddf (diff) |
Apply final annotations to the library also
Done by a perl script which converted all classes to final, followed
by selective reversion where it caused compilation failures.
Diffstat (limited to 'src/lib/compression')
-rw-r--r-- | src/lib/compression/bzip2/bzip2.cpp | 4 | ||||
-rw-r--r-- | src/lib/compression/compress_utils.h | 2 | ||||
-rw-r--r-- | src/lib/compression/lzma/lzma.cpp | 4 | ||||
-rw-r--r-- | src/lib/compression/zlib/zlib.cpp | 8 |
4 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/compression/bzip2/bzip2.cpp b/src/lib/compression/bzip2/bzip2.cpp index 4ebf572c9..02d17ea07 100644 --- a/src/lib/compression/bzip2/bzip2.cpp +++ b/src/lib/compression/bzip2/bzip2.cpp @@ -33,7 +33,7 @@ class Bzip2_Stream : public Zlib_Style_Stream<bz_stream, char> uint32_t finish_flag() const override { return BZ_FINISH; } }; -class Bzip2_Compression_Stream : public Bzip2_Stream +class Bzip2_Compression_Stream final : public Bzip2_Stream { public: explicit Bzip2_Compression_Stream(size_t block_size) @@ -72,7 +72,7 @@ class Bzip2_Compression_Stream : public Bzip2_Stream } }; -class Bzip2_Decompression_Stream : public Bzip2_Stream +class Bzip2_Decompression_Stream final : public Bzip2_Stream { public: Bzip2_Decompression_Stream() diff --git a/src/lib/compression/compress_utils.h b/src/lib/compression/compress_utils.h index 90244a8c0..396fc47be 100644 --- a/src/lib/compression/compress_utils.h +++ b/src/lib/compression/compress_utils.h @@ -17,7 +17,7 @@ namespace Botan { /* * Allocation Size Tracking Helper for Zlib/Bzlib/LZMA */ -class Compression_Alloc_Info +class Compression_Alloc_Info final { public: template<typename T> diff --git a/src/lib/compression/lzma/lzma.cpp b/src/lib/compression/lzma/lzma.cpp index 44af1ee67..365affa91 100644 --- a/src/lib/compression/lzma/lzma.cpp +++ b/src/lib/compression/lzma/lzma.cpp @@ -52,7 +52,7 @@ class LZMA_Stream : public Zlib_Style_Stream<lzma_stream, uint8_t> uint32_t finish_flag() const override { return LZMA_FINISH; } }; -class LZMA_Compression_Stream : public LZMA_Stream +class LZMA_Compression_Stream final : public LZMA_Stream { public: explicit LZMA_Compression_Stream(size_t level) @@ -71,7 +71,7 @@ class LZMA_Compression_Stream : public LZMA_Stream } }; -class LZMA_Decompression_Stream : public LZMA_Stream +class LZMA_Decompression_Stream final : public LZMA_Stream { public: LZMA_Decompression_Stream() diff --git a/src/lib/compression/zlib/zlib.cpp b/src/lib/compression/zlib/zlib.cpp index 2bfd22928..14bc12b27 100644 --- a/src/lib/compression/zlib/zlib.cpp +++ b/src/lib/compression/zlib/zlib.cpp @@ -107,20 +107,20 @@ class Zlib_Decompression_Stream : public Zlib_Stream } }; -class Deflate_Compression_Stream : public Zlib_Compression_Stream +class Deflate_Compression_Stream final : public Zlib_Compression_Stream { public: Deflate_Compression_Stream(size_t level, int wbits) : Zlib_Compression_Stream(level, wbits, -1) {} }; -class Deflate_Decompression_Stream : public Zlib_Decompression_Stream +class Deflate_Decompression_Stream final : public Zlib_Decompression_Stream { public: explicit Deflate_Decompression_Stream(int wbits) : Zlib_Decompression_Stream(wbits, -1) {} }; -class Gzip_Compression_Stream : public Zlib_Compression_Stream +class Gzip_Compression_Stream final : public Zlib_Compression_Stream { public: Gzip_Compression_Stream(size_t level, int wbits, uint8_t os_code) : @@ -139,7 +139,7 @@ class Gzip_Compression_Stream : public Zlib_Compression_Stream ::gz_header m_header; }; -class Gzip_Decompression_Stream : public Zlib_Decompression_Stream +class Gzip_Decompression_Stream final : public Zlib_Decompression_Stream { public: explicit Gzip_Decompression_Stream(int wbits) : Zlib_Decompression_Stream(wbits, 16) {} |