Browser window: Constify the bw in the URL access function.
This commit is contained in:
parent
194dfad4a5
commit
f39ce1a262
|
@ -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);
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue