Fix some build warnings.

This commit is contained in:
Michael Drake 2012-10-11 12:09:48 +01:00
parent eecb074f7b
commit 045905b93e
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ static const char *cocoa_hotlist_path( void )
{
struct browser_window *bw = [[(NetSurfApp *)NSApp frontTab] browser];
if (bw && bw->current_content) {
const char *url = nsurl_access(content_get_url( bw->current_content ));
const char *url = nsurl_access(hlcache_handle_get_url( bw->current_content ));
hotlist_add_page( url );
}
}

View File

@ -522,7 +522,7 @@ static browser_mouse_state cocoa_mouse_flags_for_event( NSEvent *evt )
browser_window_get_contextual_content( browser, point.x, point.y, &cont);
if (cont.object != NULL) {
NSString *imageURL = [NSString stringWithUTF8String: nsurl_access(content_get_url( cont.object ))];
NSString *imageURL = [NSString stringWithUTF8String: nsurl_access(hlcache_handle_get_url( cont.object ))];
[[popupMenu addItemWithTitle: NSLocalizedString( @"Open image in new tab", @"Context menu" )
action: @selector(cmOpenURLInTab:)