use const char for display device

This commit is contained in:
2012-12-11 14:20:29 +00:00
parent 5943c81a93
commit dfa662f53a
2 changed files with 2 additions and 2 deletions

View File

@@ -358,7 +358,7 @@ struct uiBlock {
char color_profile; /* color profile for correcting linear colors for display */
char *display_device; /* display device name used to display this block,
const char *display_device; /* display device name used to display this block,
* used by color widgets to transform colors from/to scene linear
*/
};

View File

@@ -2240,7 +2240,7 @@ uiBlock *ui_block_func_COLOR(bContext *C, uiPopupBlockHandle *handle, void *arg_
/************************ Popup Menu Memory ****************************/
static int ui_popup_string_hash(char *str)
static int ui_popup_string_hash(const char *str)
{
/* sometimes button contains hotkey, sometimes not, strip for proper compare */
int hash;