From 0608054a6de9bd790c1611fd52705406a8a30c0b Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Wed, 30 May 2007 22:38:03 +0100 Subject: [PATCH] mshtml: Constify some variables. --- dlls/mshtml/htmlwindow.c | 2 +- dlls/mshtml/mshtml_private.h | 4 ++-- dlls/mshtml/nsembed.c | 4 ++-- dlls/mshtml/task.c | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c index 6cd106ff62b..4375901cd03 100644 --- a/dlls/mshtml/htmlwindow.c +++ b/dlls/mshtml/htmlwindow.c @@ -743,7 +743,7 @@ HTMLWindow *HTMLWindow_Create(HTMLDocument *doc) return ret; } -HTMLWindow *nswindow_to_window(nsIDOMWindow *nswindow) +HTMLWindow *nswindow_to_window(const nsIDOMWindow *nswindow) { HTMLWindow *iter; diff --git a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h index b2a7c6961b9..39e453344fc 100644 --- a/dlls/mshtml/mshtml_private.h +++ b/dlls/mshtml/mshtml_private.h @@ -295,7 +295,7 @@ HRESULT HTMLDocument_Create(IUnknown*,REFIID,void**); HRESULT HTMLLoadOptions_Create(IUnknown*,REFIID,void**); HTMLWindow *HTMLWindow_Create(HTMLDocument*); -HTMLWindow *nswindow_to_window(nsIDOMWindow*); +HTMLWindow *nswindow_to_window(const nsIDOMWindow*); void HTMLDocument_HTMLDocument3_Init(HTMLDocument*); void HTMLDocument_Persist_Init(HTMLDocument*); @@ -406,7 +406,7 @@ typedef struct { thread_data_t *get_thread_data(BOOL); HWND get_thread_hwnd(void); void push_task(task_t*); -void remove_doc_tasks(HTMLDocument*); +void remove_doc_tasks(const HTMLDocument*); DEFINE_GUID(CLSID_AboutProtocol, 0x3050F406, 0x98B5, 0x11CF, 0xBB,0x82, 0x00,0xAA,0x00,0xBD,0xCE,0x0B); DEFINE_GUID(CLSID_JSProtocol, 0x3050F3B2, 0x98B5, 0x11CF, 0xBB,0x82, 0x00,0xAA,0x00,0xBD,0xCE,0x0B); diff --git a/dlls/mshtml/nsembed.c b/dlls/mshtml/nsembed.c index 452be8b5702..9cebe4787b1 100644 --- a/dlls/mshtml/nsembed.c +++ b/dlls/mshtml/nsembed.c @@ -119,7 +119,7 @@ static void register_nscontainer_class(void) nscontainer_class = RegisterClassExW(&wndclass); } -static BOOL load_xpcom(PRUnichar *gre_path) +static BOOL load_xpcom(const PRUnichar *gre_path) { WCHAR path_env[MAX_PATH]; int len; @@ -247,7 +247,7 @@ static void set_profile(void) nsIProfile_Release(profile); } -static BOOL init_xpcom(PRUnichar *gre_path) +static BOOL init_xpcom(const PRUnichar *gre_path) { nsresult nsres; nsIObserver *pStartNotif; diff --git a/dlls/mshtml/task.c b/dlls/mshtml/task.c index d01c17dc1d7..8949cdf69e0 100644 --- a/dlls/mshtml/task.c +++ b/dlls/mshtml/task.c @@ -66,7 +66,7 @@ static task_t *pop_task(void) return task; } -void remove_doc_tasks(HTMLDocument *doc) +void remove_doc_tasks(const HTMLDocument *doc) { thread_data_t *thread_data = get_thread_data(FALSE); task_t *iter, *tmp;