Browser window: Rework constification of bw for show_certificates.

This commit is contained in:
Michael Drake 2020-02-24 19:18:20 +00:00
parent c8efbbc206
commit 82805f72e6
3 changed files with 7 additions and 5 deletions

View File

@ -283,7 +283,8 @@ struct browser_window {
* \param existing The existing window if cloning, else NULL * \param existing The existing window if cloning, else NULL
*/ */
nserror browser_window_initialise_common(enum browser_window_create_flags flags, nserror browser_window_initialise_common(enum browser_window_create_flags flags,
struct browser_window *bw, struct browser_window *existing); struct browser_window *bw,
const struct browser_window *existing);
/** /**
@ -331,7 +332,8 @@ void browser_window_set_status(struct browser_window *bw, const char *text);
* \param bw browser window to set the type of the current drag for * \param bw browser window to set the type of the current drag for
* \return root browser window * \return root browser window
*/ */
struct browser_window * browser_window_get_root(struct browser_window *bw); struct browser_window * browser_window_get_root(
struct browser_window *bw);
/** /**

View File

@ -3090,7 +3090,7 @@ browser_window_create(enum browser_window_create_flags flags,
nserror nserror
browser_window_initialise_common(enum browser_window_create_flags flags, browser_window_initialise_common(enum browser_window_create_flags flags,
struct browser_window *bw, struct browser_window *bw,
struct browser_window *existing) const struct browser_window *existing)
{ {
nserror err; nserror err;
assert(bw); assert(bw);
@ -4765,7 +4765,7 @@ nserror browser_window_show_cookies(
} }
/* Exported interface, documented in browser_window.h */ /* Exported interface, documented in browser_window.h */
nserror browser_window_show_certificates(const struct browser_window *bw) nserror browser_window_show_certificates(struct browser_window *bw)
{ {
nserror res; nserror res;
nsurl *url; nsurl *url;

View File

@ -817,6 +817,6 @@ nserror browser_window_show_cookies(
* \return NSERROR_OK, or appropriate error otherwise. * \return NSERROR_OK, or appropriate error otherwise.
*/ */
nserror browser_window_show_certificates( nserror browser_window_show_certificates(
const struct browser_window *bw); struct browser_window *bw);
#endif #endif