Various warning squashes and fixes.

This commit is contained in:
Michael Drake 2013-02-22 14:53:57 +00:00
parent 9c13d352c7
commit c7e136d9d7
5 changed files with 9 additions and 5 deletions

View File

@ -27,6 +27,7 @@
#import "desktop/hotlist.h" #import "desktop/hotlist.h"
#import "desktop/tree.h" #import "desktop/tree.h"
#import "desktop/tree_url_node.h" #import "desktop/tree_url_node.h"
#import "utils/messages.h"
@interface BookmarksController () @interface BookmarksController ()
- (void) noteAppWillTerminate: (NSNotification *) note; - (void) noteAppWillTerminate: (NSNotification *) note;

View File

@ -29,6 +29,7 @@
#import "desktop/textinput.h" #import "desktop/textinput.h"
#import "desktop/options.h" #import "desktop/options.h"
#import "desktop/selection.h" #import "desktop/selection.h"
#import "utils/messages.h"
@interface BrowserView () @interface BrowserView ()

View File

@ -27,6 +27,7 @@
#import "desktop/browser.h" #import "desktop/browser.h"
#import "desktop/options.h" #import "desktop/options.h"
#import "utils/messages.h"
@interface BrowserWindowController () @interface BrowserWindowController ()

View File

@ -23,6 +23,7 @@
#import "desktop/browser.h" #import "desktop/browser.h"
#import "desktop/options.h" #import "desktop/options.h"
#import "utils/messages.h"
@interface NetSurfAppDelegate () @interface NetSurfAppDelegate ()
@ -64,22 +65,22 @@
- (void) openDocument: (id) sender; - (void) openDocument: (id) sender;
{ {
nsurl *url; nsurl *u;
nserror error; nserror error;
NSOpenPanel *openPanel = [NSOpenPanel openPanel]; NSOpenPanel *openPanel = [NSOpenPanel openPanel];
[openPanel setAllowsMultipleSelection: YES]; [openPanel setAllowsMultipleSelection: YES];
if ([openPanel runModalForTypes: nil] == NSOKButton) { if ([openPanel runModalForTypes: nil] == NSOKButton) {
for (NSURL *url in [openPanel URLs]) { for (NSURL *url in [openPanel URLs]) {
error = nsurl_create([[url absoluteString] UTF8String], &url); error = nsurl_create([[url absoluteString] UTF8String], &u);
if (error == NSERROR_OK) { if (error == NSERROR_OK) {
error = browser_window_create(BROWSER_WINDOW_VERIFIABLE | error = browser_window_create(BROWSER_WINDOW_VERIFIABLE |
BROWSER_WINDOW_HISTORY, BROWSER_WINDOW_HISTORY,
url, u,
NULL, NULL,
NULL, NULL,
NULL); NULL);
nsurl_unref(url); nsurl_unref(u);
} }
if (error != NSERROR_OK) { if (error != NSERROR_OK) {
warn_user(messages_get_errorcode(error), 0); warn_user(messages_get_errorcode(error), 0);

View File

@ -82,7 +82,7 @@ void gui_set_clipboard(const char *buffer, size_t length,
} }
/* Add text to clipboard string */ /* Add text to clipboard string */
if (nil == cocoa_clipboard_string) return false; if (nil == cocoa_clipboard_string) return;
[cocoa_clipboard_string appendString: [[[NSString alloc] [cocoa_clipboard_string appendString: [[[NSString alloc]
initWithBytes: buffer initWithBytes: buffer