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

Unified Diff: webrtc/base/bind_unittest.cc

Issue 2084893002: Implement scoped_const_refptr template. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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 | « no previous file | webrtc/base/scoped_ref_ptr.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/bind_unittest.cc
diff --git a/webrtc/base/bind_unittest.cc b/webrtc/base/bind_unittest.cc
index be8d79cb6af25cfd62948d7eb4852a41045276ee..3f9c50dc4804136597fb4de09377047f23afa85e 100644
--- a/webrtc/base/bind_unittest.cc
+++ b/webrtc/base/bind_unittest.cc
@@ -57,10 +57,10 @@ struct F {
struct LifeTimeCheck {
LifeTimeCheck() : ref_count_(0) {}
- void AddRef() { ++ref_count_; }
- void Release() { --ref_count_; }
+ void AddRef() const { ++ref_count_; }
+ void Release() const { --ref_count_; }
void NullaryVoid() {}
- int ref_count_;
+ mutable int ref_count_;
};
int Return42() { return 42; }
« no previous file with comments | « no previous file | webrtc/base/scoped_ref_ptr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698