diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-21 20:06:03 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-21 20:06:03 +0400 |
commit | a31db0c7e929c480b3413f0688d7ec02203b3267 (patch) | |
tree | 2c7ef5917641aa3f216281dc908ced1a69cbc88b /source/blender/blenlib/intern | |
parent | 7490cb9e94c6a315884efa9bea870899bf11862e (diff) |
rename recently added BLI_ghash_assign() -> BLI_ghash_reinsert()
Diffstat (limited to 'source/blender/blenlib/intern')
-rw-r--r-- | source/blender/blenlib/intern/BLI_ghash.c | 5 |
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); |