Skip to content

Commit f9ccf1f

Browse files
committed
Solved compilation warnings
1 parent abbb208 commit f9ccf1f

31 files changed

+41
-49
lines changed

ApplicationController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ - (NSPersistentStoreCoordinator *) persistentStoreCoordinator {
245245
fileManager = [NSFileManager defaultManager];
246246
applicationSupportFolder = [self applicationSupportFolder];
247247
if ( ![fileManager fileExistsAtPath:applicationSupportFolder isDirectory:NULL] ) {
248-
[fileManager createDirectoryAtPath:applicationSupportFolder attributes:nil];
248+
[fileManager createDirectoryAtPath:applicationSupportFolder withIntermediateDirectories:YES attributes:nil error:nil];
249249
}
250250

251251
url = [NSURL fileURLWithPath: [applicationSupportFolder stringByAppendingPathComponent: @"GitTest.xml"]];

Commands/PBCommandFactory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
#import "PBGitRepository.h"
1010

1111
@protocol PBCommandFactory
12-
+ (NSArray *) commandsForObject:(NSObject *) object repository:(PBGitRepository *) repository;
12+
+ (NSArray *) commandsForObject:(id<PBPresentable>) object repository:(PBGitRepository *) repository;
1313
@end

Commands/PBCommandWithParameter.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ @implementation PBCommandWithParameter
1616
@synthesize parameterDisplayName;
1717

1818
- initWithCommand:(PBCommand *) aCommand parameterName:(NSString *) param parameterDisplayName:(NSString *) paramDisplayName {
19-
if (self = [super initWithDisplayName:[aCommand displayName] parameters:nil repository:[aCommand repository]]) {
19+
if ((self = [super initWithDisplayName:[aCommand displayName] parameters:nil repository:[aCommand repository]])) {
2020
command = [aCommand retain];
2121
parameterName = [param retain];
2222
parameterDisplayName = [paramDisplayName retain];

Commands/PBOpenDocumentCommand.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
@implementation PBOpenDocumentCommand
1414

1515
- (id) initWithDocumentAbsolutePath:(NSString *) path {
16-
if (self = [super initWithDisplayName:@"Open" parameters:nil repository:nil]) {
16+
if ((self = [super initWithDisplayName:@"Open" parameters:nil repository:nil])) {
1717
documentURL = [[NSURL alloc] initWithString:path];
1818
}
1919
return self;

Commands/PBRemoteCommandFactory.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ + (NSArray *) commandsForSubmodule:(PBGitSubmodule *) submodule inRepository:(PB
5858
return commands;
5959
}
6060

61-
+ (NSArray *) commandsForObject:(NSObject *) object repository:(PBGitRepository *) repository {
61+
+ (NSArray *) commandsForObject:(id<PBPresentable>) object repository:(PBGitRepository *) repository {
6262
if ([object isKindOfClass:[PBGitSubmodule class]]) {
6363
return [PBRemoteCommandFactory commandsForSubmodule:(id)object inRepository:repository];
6464
}

Commands/PBRevealWithFinderCommand.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ - (id) initWithDocumentAbsolutePath:(NSString *) path {
1717
return nil;
1818
}
1919

20-
if (self = [super initWithDisplayName:@"Reveal in Finder" parameters:nil repository:nil]) {
20+
if ((self = [super initWithDisplayName:@"Reveal in Finder" parameters:nil repository:nil])) {
2121
documentURL = [[NSURL alloc] initWithString:path];
2222
}
2323
return self;

Commands/PBStashCommandFactory.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ + (NSArray *) commandsForRef:(PBGitRef *) ref repository:(PBGitRepository *) rep
2222

2323
@implementation PBStashCommandFactory
2424

25-
+ (NSArray *) commandsForObject:(NSObject *) object repository:(PBGitRepository *) repository {
25+
+ (NSArray *) commandsForObject:(id<PBPresentable>) object repository:(PBGitRepository *) repository {
2626
NSArray *cmds = nil;
2727
if ([object isKindOfClass:[PBGitStash class]]) {
2828
cmds = [PBStashCommandFactory commandsForStash:(id)object repository:repository];

Controller/PBArgumentPickerController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
@implementation PBArgumentPickerController
1414

1515
- initWithCommandWithParameter:(PBCommandWithParameter *) aCommand {
16-
if (self = [super initWithWindowNibName:@"PBArgumentPicker" owner:self]) {
16+
if ((self = [super initWithWindowNibName:@"PBArgumentPicker" owner:self])) {
1717
cmdWithParameter = [aCommand retain];
1818
}
1919
return self;

Controller/PBGitResetController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
@implementation PBGitResetController
1616

1717
- (id) initWithRepository:(PBGitRepository *) repo {
18-
if (self = [super init]){
18+
if ((self = [super init])){
1919
repository = [repo retain];
2020
}
2121
return self;

Controller/PBSubmoduleController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ @implementation PBSubmoduleController
1919
@synthesize submodules;
2020

2121
- (id) initWithRepository:(PBGitRepository *) repo {
22-
if (self = [super init]){
22+
if ((self = [super init])){
2323
repository = [repo retain];
2424
}
2525
return self;

0 commit comments

Comments
 (0)