From bdfedb686bcad6da823c79e879451053f736c8d5 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 3 Nov 2014 23:05:59 +0000 Subject: replace save_link operation table entry usage of textural url with nsurl --- riscos/window.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'riscos') diff --git a/riscos/window.c b/riscos/window.c index e247bad5f..f3c92092c 100644 --- a/riscos/window.c +++ b/riscos/window.c @@ -1280,14 +1280,12 @@ static bool gui_window_drag_start(struct gui_window *g, gui_drag_type type, * \param url The url of the link * \param title The title of the link */ -static void gui_window_save_link(struct gui_window *g, const char *url, - const char *title) +static nserror +gui_window_save_link(struct gui_window *g, nsurl *url, const char *title) { - nsurl *nurl; - nsurl_create(url, &nurl); - ro_gui_save_prepare(GUI_SAVE_LINK_URL, NULL, NULL, nurl, title); - nsurl_unref(nurl); + ro_gui_save_prepare(GUI_SAVE_LINK_URL, NULL, NULL, url, title); ro_gui_dialog_open_persistent(g->window, dialog_saveas, true); + return NSERROR_OK; } -- cgit v1.2.3