summaryrefslogtreecommitdiff
path: root/src/keyboard.h
diff options
context:
space:
mode:
authorJan D <jan.h.d@swipnet.se>2010-08-11 10:58:56 +0200
committerJan D <jan.h.d@swipnet.se>2010-08-11 10:58:56 +0200
commit9c5bd55ac617d8978b36815eb711f977aee82ace (patch)
tree0853f826b2363c42ff07b9dc53be2cd7e4421777 /src/keyboard.h
parent7aee76f47d6c0d03e8ca490e7f1721eeb2bca64a (diff)
downloademacs-9c5bd55ac617d8978b36815eb711f977aee82ace.tar.gz
Use const char* for -Wwrite_strings.
* keyboard.h (_widget_value): name, value and key are const char*. * nsfont.m (ns_descriptor_to_entity): Use const char*. * nsmenu.m (parseKeyEquiv, addSubmenuWithTitle) (addDisplayItemWithImage, update_frame_tool_bar): Use const char*. * nsterm.h (parseKeyEquiv, addSubmenuWithTitle) (addDisplayItemWithImage): Use const char*.
Diffstat (limited to 'src/keyboard.h')
-rw-r--r--src/keyboard.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/keyboard.h b/src/keyboard.h
index 693137b08f4..757f538560c 100644
--- a/src/keyboard.h
+++ b/src/keyboard.h
@@ -338,12 +338,12 @@ typedef struct _widget_value
{
/* name of widget */
Lisp_Object lname;
- char* name;
+ const char* name;
/* value (meaning depend on widget type) */
- char* value;
+ const char* value;
/* keyboard equivalent. no implications for XtTranslations */
Lisp_Object lkey;
- char* key;
+ const char* key;
/* Help string or nil if none.
GC finds this string through the frame's menu_bar_vector
or through menu_items. */