diff --git a/src/Cocoa/MyOpenGLView.m b/src/Cocoa/MyOpenGLView.m index e0b10dcd..5d5c17c9 100644 --- a/src/Cocoa/MyOpenGLView.m +++ b/src/Cocoa/MyOpenGLView.m @@ -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]; } } diff --git a/src/Core/Entities/PlayerEntity.m b/src/Core/Entities/PlayerEntity.m index 8b917e1e..23c0b173 100644 --- a/src/Core/Entities/PlayerEntity.m +++ b/src/Core/Entities/PlayerEntity.m @@ -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]; } diff --git a/src/Core/Scripting/OOJSInterfaceDefinition.m b/src/Core/Scripting/OOJSInterfaceDefinition.m index 67f83277..be02342f 100644 --- a/src/Core/Scripting/OOJSInterfaceDefinition.m +++ b/src/Core/Scripting/OOJSInterfaceDefinition.m @@ -30,6 +30,7 @@ MA 02110-1301, USA. @implementation OOJSInterfaceDefinition - (id) init { + self = [super init]; _callback = JSVAL_VOID; _callbackThis = NULL; diff --git a/src/Core/Scripting/OOJSPopulatorDefinition.m b/src/Core/Scripting/OOJSPopulatorDefinition.m index a162fade..ab7169e2 100644 --- a/src/Core/Scripting/OOJSPopulatorDefinition.m +++ b/src/Core/Scripting/OOJSPopulatorDefinition.m @@ -31,6 +31,7 @@ MA 02110-1301, USA. @implementation OOJSPopulatorDefinition - (id) init { + self = [super init]; _callback = JSVAL_VOID; _callbackThis = NULL;