Merge pull request #158 from MaddTheSane/xcode7Fix

Fix the project to build under Xcode 7.
This commit is contained in:
cim 2015-08-09 11:29:37 +01:00
commit 720eb4b2d6
4 changed files with 8 additions and 6 deletions

View File

@ -1047,7 +1047,7 @@ FAIL:
[bitmap autorelease];
NSString *filepath = [[[[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent] stringByAppendingPathComponent:name] stringByAppendingPathExtension:@"png"];
[[bitmap representationUsingType:NSPNGFileType properties:nil] writeToFile:filepath atomically:YES];
[[bitmap representationUsingType:NSPNGFileType properties:[NSDictionary dictionary]] writeToFile:filepath atomically:YES];
}
}
@ -1075,7 +1075,7 @@ FAIL:
[bitmap autorelease];
NSString *filepath = [[[[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent] stringByAppendingPathComponent:name] stringByAppendingPathExtension:@"png"];
[[bitmap representationUsingType:NSPNGFileType properties:nil] writeToFile:filepath atomically:YES];
[[bitmap representationUsingType:NSPNGFileType properties:[NSDictionary dictionary]] writeToFile:filepath atomically:YES];
}
}
@ -1104,7 +1104,7 @@ FAIL:
[bitmap autorelease];
NSString *filepath = [[[[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent] stringByAppendingPathComponent:name] stringByAppendingPathExtension:@"png"];
[[bitmap representationUsingType:NSPNGFileType properties:nil] writeToFile:filepath atomically:YES];
[[bitmap representationUsingType:NSPNGFileType properties:[NSDictionary dictionary]] writeToFile:filepath atomically:YES];
}
}
@ -1133,7 +1133,7 @@ FAIL:
[bitmap autorelease];
NSString *filepath = [[[[[NSBundle mainBundle] bundlePath] stringByDeletingLastPathComponent] stringByAppendingPathComponent:name] stringByAppendingPathExtension:@"png"];
[[bitmap representationUsingType:NSPNGFileType properties:nil] writeToFile:filepath atomically:YES];
[[bitmap representationUsingType:NSPNGFileType properties:[NSDictionary dictionary]] writeToFile:filepath atomically:YES];
}
}

View File

@ -1610,8 +1610,8 @@ NSComparisonResult marketSorterByMassUnit(id a, id b, void *market);
DESTROY(dockingReport);
dockingReport = [[NSMutableString alloc] init];
[hud resetGuis:[NSDictionary dictionaryWithObjectsAndKeys:[NSDictionary dictionaryWithObjectsAndKeys:nil], @"message_gui",
[NSDictionary dictionaryWithObjectsAndKeys:nil], @"comm_log_gui", nil]];
[hud resetGuis:[NSDictionary dictionaryWithObjectsAndKeys:[NSDictionary dictionary], @"message_gui",
[NSDictionary dictionary], @"comm_log_gui", nil]];
[self initControls];
}

View File

@ -30,6 +30,7 @@ MA 02110-1301, USA.
@implementation OOJSInterfaceDefinition
- (id) init {
self = [super init];
_callback = JSVAL_VOID;
_callbackThis = NULL;

View File

@ -31,6 +31,7 @@ MA 02110-1301, USA.
@implementation OOJSPopulatorDefinition
- (id) init {
self = [super init];
_callback = JSVAL_VOID;
_callbackThis = NULL;