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>2013-08-21 20:06:03 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-08-21 20:06:03 +0400
commita31db0c7e929c480b3413f0688d7ec02203b3267 (patch)
tree2c7ef5917641aa3f216281dc908ced1a69cbc88b /source/blender/blenlib/intern/BLI_ghash.c
parent7490cb9e94c6a315884efa9bea870899bf11862e (diff)
rename recently added BLI_ghash_assign() -> BLI_ghash_reinsert()
Diffstat (limited to 'source/blender/blenlib/intern/BLI_ghash.c')
-rw-r--r--source/blender/blenlib/intern/BLI_ghash.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/blenlib/intern/BLI_ghash.c b/source/blender/blenlib/intern/BLI_ghash.c
index 03f5d60079b..2a8dd795549 100644
--- a/source/blender/blenlib/intern/BLI_ghash.c
+++ b/source/blender/blenlib/intern/BLI_ghash.c
@@ -177,11 +177,8 @@ void BLI_ghash_insert(GHash *gh, void *key, void *val)
/**
* Assign a new value to a key that may already be in ghash.
* Avoids #BLI_ghash_remove, #BLI_ghash_insert calls (double lookups)
- *
- * \note We may want to have 'BLI_ghash_assign_ex' function that takes
- * GHashKeyFreeFP & GHashValFreeFP args. for now aren't needed.
*/
-void BLI_ghash_assign(GHash *gh, void *key, void *val, GHashKeyFreeFP keyfreefp, GHashValFreeFP valfreefp)
+void BLI_ghash_reinsert(GHash *gh, void *key, void *val, GHashKeyFreeFP keyfreefp, GHashValFreeFP valfreefp)
{
const unsigned int hash = ghash_keyhash(gh, key);
Entry *e = ghash_lookup_entry_ex(gh, key, hash);