Andrew Talbot : mshtml: Constify some variables.

Alexandre Julliard julliard at wine.codeweavers.com
Thu May 31 08:33:41 CDT 2007


Module: wine
Branch: master
Commit: 0608054a6de9bd790c1611fd52705406a8a30c0b
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0608054a6de9bd790c1611fd52705406a8a30c0b

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Wed May 30 22:38:03 2007 +0100

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 6cd106f..4375901 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 b2a7c69..39e4533 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 452be8b..9cebe47 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 d01c17d..8949cdf 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;




More information about the wine-cvs mailing list