Commit b367f0fa authored by Victor Gao's avatar Victor Gao Committed by Facebook Github Bot

apply clang-tidy modernize-use-override

Summary: Use clang-tidy to mechanically add missing `override` and remove redundant `virtual`.

Reviewed By: igorsugak

Differential Revision: D5211868

fbshipit-source-id: 6a85f7c4a543a4c9345ec5b0681a8853707343dc
parent 16723809
...@@ -997,7 +997,7 @@ class ZlibStreamCodec final : public StreamCodec { ...@@ -997,7 +997,7 @@ class ZlibStreamCodec final : public StreamCodec {
static std::unique_ptr<Codec> createCodec(int level, CodecType type); static std::unique_ptr<Codec> createCodec(int level, CodecType type);
static std::unique_ptr<StreamCodec> createStream(int level, CodecType type); static std::unique_ptr<StreamCodec> createStream(int level, CodecType type);
explicit ZlibStreamCodec(int level, CodecType type); explicit ZlibStreamCodec(int level, CodecType type);
~ZlibStreamCodec(); ~ZlibStreamCodec() override;
std::vector<std::string> validPrefixes() const override; std::vector<std::string> validPrefixes() const override;
bool canUncompress(const IOBuf* data, Optional<uint64_t> uncompressedLength) bool canUncompress(const IOBuf* data, Optional<uint64_t> uncompressedLength)
......
...@@ -237,7 +237,7 @@ class Codec { ...@@ -237,7 +237,7 @@ class Codec {
class StreamCodec : public Codec { class StreamCodec : public Codec {
public: public:
virtual ~StreamCodec() {} ~StreamCodec() override {}
/** /**
* Does the codec need the data length before compression streaming? * Does the codec need the data length before compression streaming?
...@@ -359,7 +359,7 @@ class StreamCodec : public Codec { ...@@ -359,7 +359,7 @@ class StreamCodec : public Codec {
private: private:
// default: Implemented using the streaming API. // default: Implemented using the streaming API.
std::unique_ptr<IOBuf> doCompress(const folly::IOBuf* data) override; std::unique_ptr<IOBuf> doCompress(const folly::IOBuf* data) override;
virtual std::unique_ptr<IOBuf> doUncompress( std::unique_ptr<IOBuf> doUncompress(
const folly::IOBuf* data, const folly::IOBuf* data,
folly::Optional<uint64_t> uncompressedLength) override; folly::Optional<uint64_t> uncompressedLength) override;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment