From: Mitchell Livingston Date: Sat, 12 Feb 2011 00:25:24 +0000 (+0000) Subject: fix a warning X-Git-Tag: 2.30b1~381 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f733f9d1371bafc234c64d5c7a354c6601cb61a;p=transmission fix a warning --- diff --git a/macosx/URLSheetWindowController.m b/macosx/URLSheetWindowController.m index 696fef3ef..45ce3ce0e 100644 --- a/macosx/URLSheetWindowController.m +++ b/macosx/URLSheetWindowController.m @@ -27,7 +27,7 @@ @interface URLSheetWindowController (Private) -- (BOOL) updateOpenButtonForURL: (NSString *) string; +- (void) updateOpenButtonForURL: (NSString *) string; @end @@ -74,7 +74,6 @@ NSString * urlString = nil; openFrame.size.width = NSWidth(cancelFrame); openFrame.origin.x = NSWidth([[self window] frame]) - NSWidth(openFrame) - 20.0 + 6.0; //I don't know why the extra 6.0 is needed - [fOpenButton setFrame: openFrame]; cancelFrame.origin.x = NSMinX(openFrame) - NSWidth(cancelFrame); @@ -115,7 +114,7 @@ NSString * urlString = nil; @implementation URLSheetWindowController (Private) -- (BOOL) updateOpenButtonForURL: (NSString *) string +- (void) updateOpenButtonForURL: (NSString *) string { BOOL enable = YES; if ([string isEqualToString: @""])