Various warning squashes and fixes.
This commit is contained in:
parent
9c13d352c7
commit
c7e136d9d7
|
@ -27,6 +27,7 @@
|
|||
#import "desktop/hotlist.h"
|
||||
#import "desktop/tree.h"
|
||||
#import "desktop/tree_url_node.h"
|
||||
#import "utils/messages.h"
|
||||
|
||||
@interface BookmarksController ()
|
||||
- (void) noteAppWillTerminate: (NSNotification *) note;
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
#import "desktop/textinput.h"
|
||||
#import "desktop/options.h"
|
||||
#import "desktop/selection.h"
|
||||
#import "utils/messages.h"
|
||||
|
||||
@interface BrowserView ()
|
||||
|
||||
|
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
#import "desktop/browser.h"
|
||||
#import "desktop/options.h"
|
||||
#import "utils/messages.h"
|
||||
|
||||
@interface BrowserWindowController ()
|
||||
|
||||
|
|
|
@ -23,6 +23,7 @@
|
|||
|
||||
#import "desktop/browser.h"
|
||||
#import "desktop/options.h"
|
||||
#import "utils/messages.h"
|
||||
|
||||
@interface NetSurfAppDelegate ()
|
||||
|
||||
|
@ -64,22 +65,22 @@
|
|||
|
||||
- (void) openDocument: (id) sender;
|
||||
{
|
||||
nsurl *url;
|
||||
nsurl *u;
|
||||
nserror error;
|
||||
|
||||
NSOpenPanel *openPanel = [NSOpenPanel openPanel];
|
||||
[openPanel setAllowsMultipleSelection: YES];
|
||||
if ([openPanel runModalForTypes: nil] == NSOKButton) {
|
||||
for (NSURL *url in [openPanel URLs]) {
|
||||
error = nsurl_create([[url absoluteString] UTF8String], &url);
|
||||
error = nsurl_create([[url absoluteString] UTF8String], &u);
|
||||
if (error == NSERROR_OK) {
|
||||
error = browser_window_create(BROWSER_WINDOW_VERIFIABLE |
|
||||
BROWSER_WINDOW_HISTORY,
|
||||
url,
|
||||
u,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL);
|
||||
nsurl_unref(url);
|
||||
nsurl_unref(u);
|
||||
}
|
||||
if (error != NSERROR_OK) {
|
||||
warn_user(messages_get_errorcode(error), 0);
|
||||
|
|
|
@ -82,7 +82,7 @@ void gui_set_clipboard(const char *buffer, size_t length,
|
|||
}
|
||||
|
||||
/* Add text to clipboard string */
|
||||
if (nil == cocoa_clipboard_string) return false;
|
||||
if (nil == cocoa_clipboard_string) return;
|
||||
|
||||
[cocoa_clipboard_string appendString: [[[NSString alloc]
|
||||
initWithBytes: buffer
|
||||
|
|
Loading…
Reference in New Issue