Mercurial > emacs
diff src/nsfont.m @ 109746:d6fc586a0872
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*.
author | Jan D <jan.h.d@swipnet.se> |
---|---|
date | Wed, 11 Aug 2010 10:58:56 +0200 |
parents | 9cfca8c9fb07 |
children | 4afa0b625189 |
line wrap: on
line diff
--- a/src/nsfont.m Wed Aug 11 10:36:27 2010 +0200 +++ b/src/nsfont.m Wed Aug 11 10:58:56 2010 +0200 @@ -161,7 +161,9 @@ /* Converts NSFont descriptor to FONT_WEIGHT, FONT_SLANT, FONT_WIDTH, etc.. */ static Lisp_Object -ns_descriptor_to_entity (NSFontDescriptor *desc, Lisp_Object extra, char *style) +ns_descriptor_to_entity (NSFontDescriptor *desc, + Lisp_Object extra, + const char *style) { Lisp_Object font_entity = font_make_entity (); /* NSString *psName = [desc postscriptName]; */