mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-11 21:39:56 +03:00
Various warning squashes and fixes.
This commit is contained in:
parent
9c13d352c7
commit
c7e136d9d7
@ -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;
|
||||||
|
@ -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 ()
|
||||||
|
|
||||||
|
@ -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 ()
|
||||||
|
|
||||||
|
@ -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);
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user