Code cleanup: simplify standard GHash creation.
authorNicholas Bishop <nicholasbishop@gmail.com>
Wed, 16 May 2012 00:51:36 +0000 (00:51 +0000)
committerNicholas Bishop <nicholasbishop@gmail.com>
Wed, 16 May 2012 00:51:36 +0000 (00:51 +0000)
commited33320e3f149f4106ed70b82d019113970c991e
tree49aaa5a8f7e53e7065fb758c86c73eddc20d3b9f
parenteb22b5248229494bcab091e68cf7a354fe0cc0e3
Code cleanup: simplify standard GHash creation.

Added four new functions as shortcuts to creating GHashes that use the
standard ptr/str/int/pair hash and compare functions.

GHash *BLI_ghash_ptr_new(const char *info);
GHash *BLI_ghash_str_new(const char *info);
GHash *BLI_ghash_int_new(const char *info);
GHash *BLI_ghash_pair_new(const char *info);

Replaced almost all occurrences of BLI_ghash_new() with one of the
above functions.
42 files changed:
source/blender/blenkernel/intern/action.c
source/blender/blenkernel/intern/depsgraph.c
source/blender/blenkernel/intern/icons.c
source/blender/blenkernel/intern/nla.c
source/blender/blenkernel/intern/softbody.c
source/blender/blenkernel/intern/tracking.c
source/blender/blenlib/BLI_ghash.h
source/blender/blenlib/intern/BLI_ghash.c
source/blender/blenlib/intern/pbvh.c
source/blender/blenloader/intern/readblenentry.c
source/blender/bmesh/intern/bmesh_core.c
source/blender/bmesh/intern/bmesh_mesh.c
source/blender/bmesh/intern/bmesh_operators.c
source/blender/bmesh/intern/bmesh_walkers.c
source/blender/bmesh/intern/bmesh_walkers_impl.c
source/blender/bmesh/operators/bmo_create.c
source/blender/bmesh/operators/bmo_dupe.c
source/blender/bmesh/operators/bmo_hull.c
source/blender/bmesh/tools/BME_bevel.c
source/blender/editors/animation/anim_filter.c
source/blender/editors/armature/editarmature.c
source/blender/editors/armature/editarmature_retarget.c
source/blender/editors/armature/editarmature_sketch.c
source/blender/editors/armature/reeb.c
source/blender/editors/curve/editcurve.c
source/blender/editors/interface/interface_ops.c
source/blender/editors/mesh/editmesh_knife.c
source/blender/editors/mesh/editmesh_tools.c
source/blender/editors/object/object_add.c
source/blender/editors/sculpt_paint/paint_vertex.c
source/blender/gpu/intern/gpu_codegen.c
source/blender/makesdna/intern/dna_genfile.c
source/blender/makesrna/intern/rna_access.c
source/blender/modifiers/intern/MOD_boolean_util.c
source/blender/modifiers/intern/MOD_build.c
source/blender/modifiers/intern/MOD_mask.c
source/blender/python/intern/bpy_rna.c
source/blender/render/intern/source/convertblender.c
source/blender/render/intern/source/sss.c
source/blender/render/intern/source/strand.c
source/blender/windowmanager/intern/wm.c
source/blender/windowmanager/intern/wm_operators.c