Adopt objc direct attributes where possible.

This commit is contained in:
Damiano Galassi committed 2020-07-01 19:48:11 +02:00
1 parent b9eb2a8993
commit f63e23f878
66 files changed
+223 -131

No files matched your search

+4 -1
View File
@@ -7,12 +7,15 @@
//
#import "MP42SecurityAccessToken.h"
#import <MP42Foundation/MP42Utilities.h>
MP42_OBJC_DIRECT_MEMBERS
@interface MP42SecurityAccessToken ()
@property (nonatomic, readonly) id<MP42SecurityScope> object;
@property (nonatomic, readonly) BOOL accessed;
@end
MP42_OBJC_DIRECT_MEMBERS
@implementation MP42SecurityAccessToken
- (instancetype)initWithObject:(id<MP42SecurityScope>)object;
@@ -27,7 +30,7 @@
+ (instancetype)tokenWithObject:(id<MP42SecurityScope>)object
{
return [[self alloc] initWithObject:object];
return [[MP42SecurityAccessToken alloc] initWithObject:object];
}
- (void)dealloc