Fix an instance of -Wfinal-dtor-non-final-class.

Bug: chromium:999886
Change-Id: Ib6faa2ce29e382cd12eac8339d102bb8b8ac3ada
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/227060
Commit-Queue: Artem Titov <titovartem@webrtc.org>
Reviewed-by: Artem Titov <titovartem@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#34589}
This commit is contained in:
Peter Kasting 2021-07-27 09:21:56 -07:00 committed by WebRTC LUCI CQ
parent 17939f430c
commit c662c95605

View File

@ -35,11 +35,11 @@ class MemoryLogWriter final : public RtcEventLogOutput {
std::string buffer_;
};
class MemoryLogWriterFactory : public LogWriterFactoryInterface {
class MemoryLogWriterFactory final : public LogWriterFactoryInterface {
public:
explicit MemoryLogWriterFactory(std::map<std::string, std::string>* target)
: target_(target) {}
~MemoryLogWriterFactory() final {}
~MemoryLogWriterFactory() override {}
std::unique_ptr<RtcEventLogOutput> Create(std::string filename) override {
return std::make_unique<MemoryLogWriter>(target_, filename);
}