Skip to content

Commit 9a43117

Browse files
committed
Implicit self-retains in blocks warnings
1 parent 8296234 commit 9a43117

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

Classes/Controllers/PBGitWindowController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ - (void)showCommitHookFailedSheet:(NSString *)messageText infoText:(NSString *)i
191191
completionHandler:^(id _Nonnull sheet, NSModalResponse returnCode) {
192192
if (returnCode != NSModalResponseOK) return;
193193

194-
[_commitViewController forceCommit:self];
194+
[self.commitViewController forceCommit:self];
195195
}];
196196
}
197197

Classes/Controllers/PBHistorySearchController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ - (void)startBackgroundSearch
439439
NSError *error = [NSError pb_errorWithDescription:desc
440440
failureReason:reason
441441
underlyingError:taskError];
442-
[historyController.windowController showErrorSheet:error];
442+
[self->historyController.windowController showErrorSheet:error];
443443
return;
444444
}
445445
[self parseBackgroundSearchResults:readData];

Classes/Controllers/PBWebHistoryController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ - (void) changeContentToCommit:(PBGitCommit *)commit
140140

141141
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{
142142
NSDictionary *summary = loadCommitSummary(repo, queueCommit, ^BOOL {
143-
return gen != atomic_load(&_commitSummaryGeneration);
143+
return gen != atomic_load(&self->_commitSummaryGeneration);
144144
});
145145
if (!summary) return;
146146
NSError *err = nil;

Classes/Views/PBCloneRepositoryPanel.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ - (IBAction) clone:(id)sender
148148

149149
[self close];
150150

151-
NSString *containingPath = [path stringByDeletingLastPathComponent];
151+
NSString *containingPath = [self->path stringByDeletingLastPathComponent];
152152
[PBGitDefaults setRecentCloneDestination:containingPath];
153153
[self.destinationPath setStringValue:containingPath];
154154
[self.repositoryURL setStringValue:@""];
@@ -162,7 +162,7 @@ - (IBAction) browseRepository:(id)sender
162162
[browseRepositoryPanel beginSheetModalForWindow:[self window]
163163
completionHandler:^(NSInteger result) {
164164
if (result == NSModalResponseOK) {
165-
NSURL *url = [[browseRepositoryPanel URLs] lastObject];
165+
NSURL *url = [[self->browseRepositoryPanel URLs] lastObject];
166166
[self.repositoryURL setStringValue:[url path]];
167167
}
168168
}];
@@ -182,7 +182,7 @@ - (IBAction) browseDestination:(id)sender
182182
[browseDestinationPanel beginSheetModalForWindow:[self window]
183183
completionHandler:^(NSInteger result) {
184184
if (result == NSModalResponseOK) {
185-
NSURL *url = [[browseDestinationPanel URLs] lastObject];
185+
NSURL *url = [[self->browseDestinationPanel URLs] lastObject];
186186
[self.destinationPath setStringValue:[url path]];
187187
}
188188
}];

Classes/git/PBGitIndex.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ - (void)refresh
159159
[self postIndexRefreshSuccess:YES message:@"update-index success"];
160160
}
161161

162-
dispatch_group_leave(_indexRefreshGroup);
162+
dispatch_group_leave(self->_indexRefreshGroup);
163163
}];
164164

165165

@@ -217,7 +217,7 @@ - (void)refresh
217217
}
218218

219219
[self postIndexRefreshSuccess:YES message:@"ls-files success"];
220-
dispatch_group_leave(_indexRefreshGroup);
220+
dispatch_group_leave(self->_indexRefreshGroup);
221221
}];
222222

223223
// Staged files
@@ -236,7 +236,7 @@ - (void)refresh
236236

237237
[self postIndexRefreshSuccess:YES message:@"diff-index success"];
238238

239-
dispatch_group_leave(_indexRefreshGroup);
239+
dispatch_group_leave(self->_indexRefreshGroup);
240240
}];
241241

242242

@@ -255,7 +255,7 @@ - (void)refresh
255255
}
256256
[self postIndexRefreshSuccess:YES message:@"diff-files success"];
257257

258-
dispatch_group_leave(_indexRefreshGroup);
258+
dispatch_group_leave(self->_indexRefreshGroup);
259259
}];
260260
}
261261

0 commit comments

Comments
 (0)