Skip to content

Commit

Permalink
Replaced NULL with nil in OutlineAccessibility - functionally it has …
Browse files Browse the repository at this point in the history
…no effect but it is more uiform and according to the ObjectibeC convention where objects are referred as nil and references to the primitives as NULL.
  • Loading branch information
azuev-java committed May 22, 2024
1 parent 6d6cd81 commit 4836a92
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ - (NSString *)accessibilityLabel
{
if (![self isCacheValid]) {
NSArray *t = [super accessibilityChildren];
if (t != NULL) {
if (t != nil) {
rowCache = [[NSMutableArray arrayWithArray:t] retain];
} else {
rowCache = NULL;
rowCache = nil;
}
rowCacheValid = YES;
}
Expand All @@ -83,10 +83,10 @@ - (NSString *)accessibilityLabel
{
if (!selectedRowCacheValid) {
NSArray *t = [super accessibilitySelectedChildren];
if (t != NULL) {
if (t != nil) {
selectedRowCache = [[NSMutableArray arrayWithArray:t] retain];
} else {
selectedRowCache = NULL;
selectedRowCache = nil;
}
selectedRowCacheValid = YES;
}
Expand Down

0 comments on commit 4836a92

Please sign in to comment.