Cleanup: Fix warning in makesdna

passing a const pointer to BLI_ghash_insert causes warning

C4090	'function': different 'const' qualifiers

with MSVC
This commit is contained in:
Ray molenkamp 2019-05-27 08:44:37 -06:00
parent 4ed6b891d5
commit 270faa4e9c
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ void DNA_alias_maps(enum eDNA_RenameDir version_dir, GHash **r_struct_map, GHash
const char **str_pair = MEM_mallocN(sizeof(char *) * 2, __func__);
str_pair[0] = BLI_ghash_lookup_default(struct_map_local, data[i][0], (void *)data[i][0]);
str_pair[1] = data[i][elem_key];
BLI_ghash_insert(elem_map, str_pair, (void *)data[i][elem_val]);
BLI_ghash_insert(elem_map, (void *)str_pair, (void *)data[i][elem_val]);
}
*r_elem_map = elem_map;
}