Skip to content

Commit 186f60a

Browse files
committed
Minor changes for compile warnings and consistency
1 parent e33312b commit 186f60a

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

PBFileChangesTableView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ - (NSMenu *)menuForEvent:(NSEvent *)theEvent
1818
NSPoint eventLocation = [self convertPoint: [theEvent locationInWindow] fromView: nil];
1919
NSInteger rowIndex = [self rowAtPoint:eventLocation];
2020
[self selectRowIndexes:[NSIndexSet indexSetWithIndex:rowIndex] byExtendingSelection:TRUE];
21-
return [[self delegate] menuForTable: self];
21+
return [(PBGitIndexController*)[self delegate] menuForTable: self];
2222
}
2323

2424
return nil;

PBGitCommitController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ - (void) _repositoryUpdatedNotification:(NSNotification *)notification {
8383
PBGitRepositoryWatcherEventType eventType = [(NSNumber *)[[notification userInfo] objectForKey:kPBGitRepositoryEventTypeUserInfoKey] unsignedIntValue];
8484
if(eventType & (PBGitRepositoryWatcherEventTypeWorkingDirectory | PBGitRepositoryWatcherEventTypeIndex)){
8585
// refresh if the working directory or index is modified
86-
[self refresh:NULL];
86+
[self refresh:self];
8787
}
8888
}
8989

PBGitRevisionCell.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ - (void) drawLineFromColumn: (int) from toColumn: (int) to inRect: (NSRect) r of
4747
NSPoint center = NSMakePoint( origin.x + columnWidth * to, origin.y + r.size.height * 0.5 + 0.5);
4848

4949
NSArray* colors = [PBGitRevisionCell laneColors];
50-
[[colors objectAtIndex: c % [colors count]] set];
50+
[(NSColor*)[colors objectAtIndex: (c % [colors count])] set];
5151

5252
NSBezierPath * path = [NSBezierPath bezierPath];
5353
[path setLineWidth:2];

PBGitSidebarController.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
- (void) selectCurrentBranch;
3636

3737
- (NSMenu *) menuForRow:(NSInteger)row;
38+
- (void) menuNeedsUpdate:(NSMenu *)menu;
3839

3940
- (IBAction) fetchPullPushAction:(id)sender;
4041

0 commit comments

Comments
 (0)