summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--desktop/browser_window.c2
-rw-r--r--include/netsurf/browser_window.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/desktop/browser_window.c b/desktop/browser_window.c
index dba3d31eb..838e62d65 100644
--- a/desktop/browser_window.c
+++ b/desktop/browser_window.c
@@ -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);
diff --git a/include/netsurf/browser_window.h b/include/netsurf/browser_window.h
index f8b86d07a..7b2f652e6 100644
--- a/include/netsurf/browser_window.h
+++ b/include/netsurf/browser_window.h
@@ -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.