Delete a gcc workaround in rtc::FinalRefCountedObject

with bot using old version of gcc removed, this workaround is not needed.

Bug: webrtc:12481
Change-Id: Ib1bfb6260c7ff5688c39fa05e8a62225700b9f27
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/213187
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#33592}
This commit is contained in:
Danil Chapovalov
2021-03-29 22:17:36 +02:00
committed by Commit Bot
parent 5a40b37105
commit d71e591894

View File

@ -80,14 +80,7 @@ class FinalRefCountedObject final : public T {
private:
~FinalRefCountedObject() = default;
// gcc v7.1 requires default contructors for members of
// `FinalRefCountedObject` to be able to use inherited constructors.
// TODO(danilchap): Replace with simpler braced initialization when
// bot support for that version of gcc is dropped.
class ZeroBasedRefCounter : public webrtc::webrtc_impl::RefCounter {
public:
ZeroBasedRefCounter() : RefCounter(0) {}
} mutable ref_count_;
mutable webrtc::webrtc_impl::RefCounter ref_count_{0};
};
} // namespace rtc