Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Unified Diff: webrtc/base/refcount.h

Issue 1401743002: Fix: RefCountInterface: Make AddRef() and Release() const (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « talk/app/webrtc/dtmfsender_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/refcount.h
diff --git a/webrtc/base/refcount.h b/webrtc/base/refcount.h
index dbad2eba76c3763ae9a09dd8b1e9fd58f372e0b8..55ce23a348b68a84ce362d98f85c0f871725303a 100644
--- a/webrtc/base/refcount.h
+++ b/webrtc/base/refcount.h
@@ -95,11 +95,11 @@ class RefCountedObject : public T {
: T(p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11), ref_count_(0) {
}
- int AddRef() const override {
+ virtual int AddRef() const {
return AtomicOps::Increment(&ref_count_);
}
- int Release() const override {
+ virtual int Release() const {
int count = AtomicOps::Decrement(&ref_count_);
if (!count) {
delete this;
« no previous file with comments | « talk/app/webrtc/dtmfsender_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698