summaryrefslogtreecommitdiffstats
path: root/macosx/HBPreferencesController.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2015-01-19 15:35:35 +0000
committerritsuka <[email protected]>2015-01-19 15:35:35 +0000
commit2e7330affab701fb1443fec449e2b04690b32e33 (patch)
treeb00b4de54ca6c26d5ecb7c13b15f344292b00988 /macosx/HBPreferencesController.m
parentea82134f6199f79cb939781cb38dceaa1534dbc1 (diff)
MacGui: enable and fix more compiler warnings in the Xcode project.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6772 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBPreferencesController.m')
-rw-r--r--macosx/HBPreferencesController.m17
1 files changed, 8 insertions, 9 deletions
diff --git a/macosx/HBPreferencesController.m b/macosx/HBPreferencesController.m
index cd0874696..e53878cca 100644
--- a/macosx/HBPreferencesController.m
+++ b/macosx/HBPreferencesController.m
@@ -179,13 +179,12 @@
/*Opens the app browse window*/
- (IBAction) browseSendToApp: (id) sender
{
- NSOpenPanel * panel;
-
- panel = [NSOpenPanel openPanel];
- [panel setAllowsMultipleSelection: NO];
- [panel setCanChooseFiles: YES];
- [panel setCanChooseDirectories: NO ];
- NSString * sendToAppDirectory;
+ NSOpenPanel *panel = [NSOpenPanel openPanel];
+ [panel setAllowsMultipleSelection:NO];
+ [panel setCanChooseFiles:YES];
+ [panel setCanChooseDirectories:NO];
+
+ NSString *sendToAppDirectory;
if ([[NSUserDefaults standardUserDefaults] stringForKey:@"LastSendToAppDirectory"])
{
sendToAppDirectory = [[NSUserDefaults standardUserDefaults] stringForKey:@"LastSendToAppDirectory"];
@@ -200,8 +199,8 @@
if (result == NSOKButton)
{
NSURL *sendToAppURL = [panel URL];
- NSURL *sendToAppDirectory = [sendToAppURL URLByDeletingLastPathComponent];
- [[NSUserDefaults standardUserDefaults] setObject:[sendToAppDirectory path] forKey:@"LastSendToAppDirectory"];
+ NSURL *sendToAppDirectoryURL = [sendToAppURL URLByDeletingLastPathComponent];
+ [[NSUserDefaults standardUserDefaults] setObject:[sendToAppDirectoryURL path] forKey:@"LastSendToAppDirectory"];
NSString *sendToAppName = [[sendToAppURL lastPathComponent] stringByDeletingPathExtension];
/* we set the name of the app to send to in the display field */