summaryrefslogtreecommitdiffstats
path: root/base/scoped_nsobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/scoped_nsobject.h')
-rw-r--r--base/scoped_nsobject.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/base/scoped_nsobject.h b/base/scoped_nsobject.h
index 1b40ade..a9783e0 100644
--- a/base/scoped_nsobject.h
+++ b/base/scoped_nsobject.h
@@ -41,10 +41,10 @@ class scoped_nsobject {
void reset(NST* object = nil) {
// We intentionally do not check that object != object_ as the caller must
- // already have an ownership claim over whatever it gives to scoped_nsobject
- // and scoped_cftyperef, whether it's in the constructor or in a call to
- // reset(). In either case, it relinquishes that claim and the scoper
- // assumes it.
+ // already have an ownership claim over whatever it gives to
+ // scoped_nsobject and ScopedCFTypeRef, whether it's in the constructor or
+ // in a call to reset(). In either case, it relinquishes that claim and
+ // the scoper assumes it.
[object_ release];
object_ = object;
}
@@ -114,10 +114,10 @@ class scoped_nsobject<id> {
void reset(id object = nil) {
// We intentionally do not check that object != object_ as the caller must
- // already have an ownership claim over whatever it gives to scoped_nsobject
- // and scoped_cftyperef, whether it's in the constructor or in a call to
- // reset(). In either case, it relinquishes that claim and the scoper
- // assumes it.
+ // already have an ownership claim over whatever it gives to
+ // scoped_nsobject and ScopedCFTypeRef, whether it's in the constructor or
+ // in a call to reset(). In either case, it relinquishes that claim and
+ // the scoper assumes it.
[object_ release];
object_ = object;
}