Dmitry Timoshkov : mshtml: Constify some data.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jul 31 07:55:01 CDT 2007


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

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Tue Jul 31 17:48:59 2007 +0900

mshtml: Constify some data.

---

 dlls/mshtml/editor.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/dlls/mshtml/editor.c b/dlls/mshtml/editor.c
index 5bf160e..022f41d 100644
--- a/dlls/mshtml/editor.c
+++ b/dlls/mshtml/editor.c
@@ -488,7 +488,7 @@ static nsIDOMNode *get_child_text_node(nsIDOMNode *node, BOOL first)
     return NULL;
 }
 
-static void handle_arrow_key(HTMLDocument *This, nsIDOMKeyEvent *event, const char *cmds[4])
+static void handle_arrow_key(HTMLDocument *This, nsIDOMKeyEvent *event, const char * const cmds[4])
 {
     int i=0;
     PRBool b;
@@ -518,7 +518,7 @@ void handle_edit_event(HTMLDocument *This, nsIDOMEvent *event)
 
     switch(code) {
     case DOM_VK_LEFT: {
-        static const char *cmds[] = {
+        static const char * const cmds[] = {
             NSCMD_CHARPREVIOUS,
             NSCMD_WORDPREVIOUS,
             NSCMD_SELECTCHARPREVIOUS,
@@ -530,7 +530,7 @@ void handle_edit_event(HTMLDocument *This, nsIDOMEvent *event)
         break;
     }
     case DOM_VK_RIGHT: {
-        static const char *cmds[] = {
+        static const char * const cmds[] = {
             NSCMD_CHARNEXT,
             NSCMD_WORDNEXT,
             NSCMD_SELECTCHARNEXT,
@@ -542,7 +542,7 @@ void handle_edit_event(HTMLDocument *This, nsIDOMEvent *event)
         break;
     }
     case DOM_VK_UP: {
-        static const char *cmds[] = {
+        static const char * const cmds[] = {
             NSCMD_LINEPREVIOUS,
             NSCMD_MOVEPAGEUP,
             NSCMD_SELECTLINEPREVIOUS,
@@ -554,7 +554,7 @@ void handle_edit_event(HTMLDocument *This, nsIDOMEvent *event)
         break;
     }
     case DOM_VK_DOWN: {
-        static const char *cmds[] = {
+        static const char * const cmds[] = {
             NSCMD_LINENEXT,
             NSCMD_MOVEPAGEDOWN,
             NSCMD_SELECTLINENEXT,
@@ -566,7 +566,7 @@ void handle_edit_event(HTMLDocument *This, nsIDOMEvent *event)
         break;
     }
     case DOM_VK_DELETE: {
-        static const char *cmds[] = {
+        static const char * const cmds[] = {
             NSCMD_DELETECHARFORWARD,
             NSCMD_DELETEWORDFORWARD,
             NULL, NULL
@@ -577,7 +577,7 @@ void handle_edit_event(HTMLDocument *This, nsIDOMEvent *event)
         break;
     }
     case DOM_VK_HOME: {
-        static const char *cmds[] = {
+        static const char * const cmds[] = {
             NSCMD_BEGINLINE,
             NSCMD_MOVETOP,
             NSCMD_SELECTBEGINLINE,
@@ -589,7 +589,7 @@ void handle_edit_event(HTMLDocument *This, nsIDOMEvent *event)
         break;
     }
     case DOM_VK_END: {
-        static const char *cmds[] = {
+        static const char * const cmds[] = {
             NSCMD_ENDLINE,
             NSCMD_MOVEBOTTOM,
             NSCMD_SELECTENDLINE,




More information about the wine-cvs mailing list