Skip to content

Commit

Permalink
Merge pull request #657 from RSilicon/More
Browse files Browse the repository at this point in the history
Fix some clang-tidy warnings
  • Loading branch information
LIJI32 authored Sep 22, 2024
2 parents f5c7c44 + 7e5996d commit 73168aa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cocoa/GBTerminalTextFieldCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ - (instancetype)init
{
self = [super init];
if (!self) {
return NULL;
return nil;
}
lines = [[NSMutableOrderedSet alloc] init];
return self;
Expand Down
2 changes: 1 addition & 1 deletion HexFiend/HFPasteboardOwner.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ - (void)tearDownPasteboardReferenceIfExists {
[[NSNotificationCenter defaultCenter] removeObserver:self name:HFPrepareForChangeInFileNotification object:nil];
}
if (retainedSelfOnBehalfOfPboard) {
CFRelease(self);
[self release];
retainedSelfOnBehalfOfPboard = NO;
}
}
Expand Down
2 changes: 1 addition & 1 deletion iOS/GBViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -612,7 +612,7 @@ - (void)verifyEntitlements
const char *_teamIdentifier = xpc_dictionary_get_string(entitlements, "com.apple.developer.team-identifier");
NSString *teamIdentifier = _teamIdentifier? @(_teamIdentifier) : nil;

CFRelease(entitlements);
xpc_release(entitlements);

if (!entIdentifier) { // No identifier. Installed using a jailbreak, we're fine.
return;
Expand Down

0 comments on commit 73168aa

Please sign in to comment.