Browser window: Constify the bw in the URL access function.

This commit is contained in:
Michael Drake 2020-02-22 16:33:43 +00:00
parent 194dfad4a5
commit f39ce1a262
2 changed files with 2 additions and 2 deletions

View File

@ -3788,7 +3788,7 @@ nserror browser_window_navigate_up(struct browser_window *bw, bool new_window)
/* Exported interface, documented in include/netsurf/browser_window.h */
nsurl* browser_window_access_url(struct browser_window *bw)
nsurl* browser_window_access_url(const struct browser_window *bw)
{
assert(bw != NULL);

View File

@ -231,7 +231,7 @@ nserror browser_window_navigate_up(struct browser_window *bw, bool new_window);
*
* \note guaranteed to return a valid nsurl ptr, never returns NULL.
*/
struct nsurl* browser_window_access_url(struct browser_window *bw);
struct nsurl* browser_window_access_url(const struct browser_window *bw);
/**
* Access a browser window's URL.