Skip to content

Commit 4cba9f1

Browse files
author
Joe Newton
committed
Standardized syntax used for pointers and attributes
1 parent 5df995c commit 4cba9f1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

KeyValueObservation/SRDKeyValueObservation.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ - (void)dealloc {
8282
#pragma mark - Public Methods
8383

8484
- (void)invalidate {
85-
NSObject * __strong object = _object;
85+
__strong NSObject *object = _object;
8686

8787
#if DEBUG
8888
if (object == nil && _unownedObject != nil) {

KeyValueObservationTests/KeyValueObservationTests.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ @interface DummyClass : NSObject {
2121
@property (nonatomic, assign) NSInteger integer;
2222
@property (nonatomic, assign) NSInteger integer2;
2323

24-
@property (nonatomic, strong) NSObject* object;
24+
@property (nonatomic, strong) NSObject *object;
2525

2626
@property (nonatomic, strong) NSMutableArray *array;
2727
@property (nonatomic, strong) NSMutableSet *set;
@@ -386,7 +386,7 @@ - (void)testToManyRelationshipObservations {
386386
}
387387

388388
- (void)testInvalidateAfterFreeLogs {
389-
SRDKeyValueObservation* observation;
389+
SRDKeyValueObservation *observation;
390390
@autoreleasepool {
391391
observation = [[SRDKeyValueObservation alloc] initWithObject:[[DummyClass alloc] init] keyPath:@"integer" options:kNilOptions changeHandler:^(id _, id __) {}];
392392
}
@@ -395,7 +395,7 @@ - (void)testInvalidateAfterFreeLogs {
395395
}
396396

397397
- (void)testObservedObjectSetToFromNil {
398-
DummyClass* dummy = [[DummyClass alloc] init];
398+
DummyClass *dummy = [[DummyClass alloc] init];
399399
SRDKeyValueObservation *observation;
400400
__block BOOL first = YES;
401401

0 commit comments

Comments
 (0)