mshtml: Constify some variables

Andrew Talbot Andrew.Talbot at talbotville.com
Wed May 30 16:38:03 CDT 2007


Changelog:
    mshtml: Constify some variables.

diff -urN a/dlls/mshtml/htmlwindow.c b/dlls/mshtml/htmlwindow.c
--- a/dlls/mshtml/htmlwindow.c	2006-12-12 20:30:37.000000000 +0000
+++ b/dlls/mshtml/htmlwindow.c	2007-05-30 22:31:01.000000000 +0100
@@ -743,7 +743,7 @@
     return ret;
 }
 
-HTMLWindow *nswindow_to_window(nsIDOMWindow *nswindow)
+HTMLWindow *nswindow_to_window(const nsIDOMWindow *nswindow)
 {
     HTMLWindow *iter;
 
diff -urN a/dlls/mshtml/mshtml_private.h b/dlls/mshtml/mshtml_private.h
--- a/dlls/mshtml/mshtml_private.h	2007-05-11 17:26:25.000000000 +0100
+++ b/dlls/mshtml/mshtml_private.h	2007-05-30 22:31:22.000000000 +0100
@@ -295,7 +295,7 @@
 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 @@
 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 -urN a/dlls/mshtml/nsembed.c b/dlls/mshtml/nsembed.c
--- a/dlls/mshtml/nsembed.c	2007-05-07 15:49:26.000000000 +0100
+++ b/dlls/mshtml/nsembed.c	2007-05-30 22:31:41.000000000 +0100
@@ -119,7 +119,7 @@
     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 @@
     nsIProfile_Release(profile);
 }
 
-static BOOL init_xpcom(PRUnichar *gre_path)
+static BOOL init_xpcom(const PRUnichar *gre_path)
 {
     nsresult nsres;
     nsIObserver *pStartNotif;
diff -urN a/dlls/mshtml/task.c b/dlls/mshtml/task.c
--- a/dlls/mshtml/task.c	2007-05-25 23:23:57.000000000 +0100
+++ b/dlls/mshtml/task.c	2007-05-30 22:31:55.000000000 +0100
@@ -66,7 +66,7 @@
     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;



More information about the wine-patches mailing list