Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 97e5426

Browse files
author
Chris Yang
committed
remove synthesize and use _container directly
1 parent 3171291 commit 97e5426

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

fml/platform/darwin/weak_nsobject.mm

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ - (id)initWithContainer:(fml::RefPtr<fml::WeakContainer>)container;
2929

3030
@implementation CRBWeakNSProtocolSentinel
3131

32-
@synthesize container = container_;
33-
3432
+ (fml::RefPtr<fml::WeakContainer>)containerForObject:(id)object
3533
threadChecker:(debug::DebugThreadChecker)checker {
3634
if (object == nil) {
@@ -53,10 +51,10 @@ @implementation CRBWeakNSProtocolSentinel
5351
}
5452

5553
- (id)initWithContainer:(fml::RefPtr<fml::WeakContainer>)container {
56-
FML_DCHECK(container.get());
54+
FML_DCHECK(_container.get());
5755
self = [super init];
5856
if (self) {
59-
container_ = container;
57+
_container = container;
6058
}
6159
return self;
6260
}

0 commit comments

Comments
 (0)