From 891949cbb47143420f4324cb60efc05ef5d70b39 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 25 Sep 2022 17:04:52 +1000 Subject: Cleanup: use 'u' prefixed integer types for brevity & cast style To use function style cast '(unsigned char)x' can't be replaced by 'unsigned char(x)'. --- source/blender/depsgraph/intern/depsgraph_physics.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'source/blender/depsgraph/intern/depsgraph_physics.cc') diff --git a/source/blender/depsgraph/intern/depsgraph_physics.cc b/source/blender/depsgraph/intern/depsgraph_physics.cc index cf5cccac580..d7d03ec3261 100644 --- a/source/blender/depsgraph/intern/depsgraph_physics.cc +++ b/source/blender/depsgraph/intern/depsgraph_physics.cc @@ -32,7 +32,7 @@ namespace deg = blender::deg; /*************************** Evaluation Query API *****************************/ -static ePhysicsRelationType modifier_to_relation_type(unsigned int modifier_type) +static ePhysicsRelationType modifier_to_relation_type(uint modifier_type) { switch (modifier_type) { case eModifierType_Collision: @@ -72,7 +72,7 @@ ListBase *DEG_get_effector_relations(const Depsgraph *graph, Collection *collect ListBase *DEG_get_collision_relations(const Depsgraph *graph, Collection *collection, - unsigned int modifier_type) + uint modifier_type) { const deg::Depsgraph *deg_graph = reinterpret_cast(graph); const ePhysicsRelationType type = modifier_to_relation_type(modifier_type); @@ -91,7 +91,7 @@ ListBase *DEG_get_collision_relations(const Depsgraph *graph, void DEG_add_collision_relations(DepsNodeHandle *handle, Object *object, Collection *collection, - unsigned int modifier_type, + uint modifier_type, DEG_CollobjFilterFunction filter_function, const char *name) { @@ -178,9 +178,7 @@ ListBase *build_effector_relations(Depsgraph *graph, Collection *collection) }); } -ListBase *build_collision_relations(Depsgraph *graph, - Collection *collection, - unsigned int modifier_type) +ListBase *build_collision_relations(Depsgraph *graph, Collection *collection, uint modifier_type) { const ePhysicsRelationType type = modifier_to_relation_type(modifier_type); Map *hash = graph->physics_relations[type]; -- cgit v1.2.3