Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2015-05-11 05:39:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2015-05-11 05:39:39 +0300
commit097862cb26f98d9dbd1bc47543ea8e58f281cc5f (patch)
treeb3f63576849016e3a02f3b0e4f86dd57addf85c1 /source/blender/blenkernel/intern/addon.c
parent18cf235893d5d2163084afcd936713de273ece9e (diff)
GHash: avoid redundant casts
Diffstat (limited to 'source/blender/blenkernel/intern/addon.c')
-rw-r--r--source/blender/blenkernel/intern/addon.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/addon.c b/source/blender/blenkernel/intern/addon.c
index 28667d458b8..811461b84c1 100644
--- a/source/blender/blenkernel/intern/addon.c
+++ b/source/blender/blenkernel/intern/addon.c
@@ -62,12 +62,12 @@ bAddonPrefType *BKE_addon_pref_type_find(const char *idname, bool quiet)
void BKE_addon_pref_type_add(bAddonPrefType *apt)
{
- BLI_ghash_insert(global_addonpreftype_hash, (void *)apt->idname, apt);
+ BLI_ghash_insert(global_addonpreftype_hash, apt->idname, apt);
}
-void BKE_addon_pref_type_remove(bAddonPrefType *apt)
+void BKE_addon_pref_type_remove(const bAddonPrefType *apt)
{
- BLI_ghash_remove(global_addonpreftype_hash, (void *)apt->idname, NULL, MEM_freeN);
+ BLI_ghash_remove(global_addonpreftype_hash, apt->idname, NULL, MEM_freeN);
}
void BKE_addon_pref_type_init(void)