Cleanup: Fix const warning in makesrna

rna_function_string was not const correct leading to
different 'const' qualifiers (C4090) warnings in MSVC.
This commit is contained in:
Ray Molenkamp
2019-05-27 11:34:04 -06:00
parent 3a8f543b61
commit 55814cd31f

View File

@@ -567,7 +567,7 @@ static int rna_color_quantize(PropertyRNA *prop, PropertyDefRNA *dp)
(IS_DNATYPE_FLOAT_COMPAT(dp->dnatype) == 0));
}
static const char *rna_function_string(void *func)
static const char *rna_function_string(const void *func)
{
return (func) ? (const char *)func : "NULL";
}