Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Fix two minor warnings found by clang
- NSString stringWithContentsOfFile without explicit encoding is deprecated
- since OS X 10.4
- Index: macosx/AboutWindowController.m
- ===================================================================
- --- macosx/AboutWindowController.m (revision 8389)
- +++ macosx/AboutWindowController.m (working copy)
- @@ -71,7 +71,9 @@
- - (IBAction) showLicense: (id) sender
- {
- - [fLicenseView setString: [NSString stringWithContentsOfFile: [[NSBundle mainBundle] pathForResource: @"COPYING" ofType: nil]]];
- + [fLicenseView setString: [NSString stringWithContentsOfFile:
- + [[NSBundle mainBundle] pathForResource: @"COPYING" ofType: nil]
- + encoding: NSUTF8StringEncoding error: nil]];
- [fLicenseCloseButton setTitle: NSLocalizedString(@"OK", "About window -> license close button")];
- [NSApp beginSheet: fLicenseSheet modalForWindow: [self window] modalDelegate: nil didEndSelector: nil contextInfo: nil];
- Index: macosx/PortChecker.m
- ===================================================================
- --- macosx/PortChecker.m (revision 8389)
- +++ macosx/PortChecker.m (working copy)
- @@ -108,7 +108,7 @@
- [self callBackWithStatus: PORT_STATUS_CLOSED];
- else
- {
- - NSLog([NSString stringWithFormat: @"Unable to get port status: invalid response (%@)", probeString]);
- + NSLog(@"Unable to get port status: invalid response (%@)", probeString);
- [self callBackWithStatus: PORT_STATUS_ERROR];
- }
- [probeString release];
Add Comment
Please, Sign In to add comment