use const char for display device
This commit is contained in:
@@ -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
|
||||
*/
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user