diff options
author | Vincent Ambo <tazjin@google.com> | 2020-05-20T03·33+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-05-20T03·33+0100 |
commit | d331d3a0b5c497a46e2636f308234be66566c04c (patch) | |
tree | 92526b2f99456c09c5cc81233ed5a4311abe3d2b /third_party/nix/src/libutil/compression.cc | |
parent | fed31b2c9b364fc1ed0b724c21b068cdedf46ee7 (diff) |
refactor(3p/nix): Apply clang-tidy's modernize-* fixes r/787
This applies the modernization fixes listed here: https://clang.llvm.org/extra/clang-tidy/checks/list.html The 'modernize-use-trailing-return-type' fix was excluded due to my personal preference (more specifically, I think the 'auto' keyword is misleading in that position).
Diffstat (limited to 'third_party/nix/src/libutil/compression.cc')
-rw-r--r-- | third_party/nix/src/libutil/compression.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/third_party/nix/src/libutil/compression.cc b/third_party/nix/src/libutil/compression.cc index 93e2360bd58c..851a7f817994 100644 --- a/third_party/nix/src/libutil/compression.cc +++ b/third_party/nix/src/libutil/compression.cc @@ -57,7 +57,7 @@ struct XzDecompressionSink : CompressionSink { strm.avail_out = sizeof(outbuf); } - ~XzDecompressionSink() { lzma_end(&strm); } + ~XzDecompressionSink() override { lzma_end(&strm); } void finish() override { CompressionSink::flush(); @@ -103,7 +103,7 @@ struct BzipDecompressionSink : ChunkedCompressionSink { strm.avail_out = sizeof(outbuf); } - ~BzipDecompressionSink() { BZ2_bzDecompressEnd(&strm); } + ~BzipDecompressionSink() override { BZ2_bzDecompressEnd(&strm); } void finish() override { flush(); @@ -147,7 +147,7 @@ struct BrotliDecompressionSink : ChunkedCompressionSink { } } - ~BrotliDecompressionSink() { BrotliDecoderDestroyInstance(state); } + ~BrotliDecompressionSink() override { BrotliDecoderDestroyInstance(state); } void finish() override { flush(); @@ -249,7 +249,7 @@ struct XzCompressionSink : CompressionSink { strm.avail_out = sizeof(outbuf); } - ~XzCompressionSink() { lzma_end(&strm); } + ~XzCompressionSink() override { lzma_end(&strm); } void finish() override { CompressionSink::flush(); @@ -295,7 +295,7 @@ struct BzipCompressionSink : ChunkedCompressionSink { strm.avail_out = sizeof(outbuf); } - ~BzipCompressionSink() { BZ2_bzCompressEnd(&strm); } + ~BzipCompressionSink() override { BZ2_bzCompressEnd(&strm); } void finish() override { flush(); @@ -340,7 +340,7 @@ struct BrotliCompressionSink : ChunkedCompressionSink { } } - ~BrotliCompressionSink() { BrotliEncoderDestroyInstance(state); } + ~BrotliCompressionSink() override { BrotliEncoderDestroyInstance(state); } void finish() override { flush(); |