From 1ddfd8c9ec1d61fa62dfe6adb37c4789476bc4e6 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 8 Dec 2018 15:01:47 +1100 Subject: Cleanup: style --- source/blender/blenlib/intern/system.c | 4 ++-- source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc | 2 +- source/blender/modifiers/intern/MOD_particleinstance.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'source/blender') diff --git a/source/blender/blenlib/intern/system.c b/source/blender/blenlib/intern/system.c index 5ff1d4ed710..c1a7846c4b1 100644 --- a/source/blender/blenlib/intern/system.c +++ b/source/blender/blenlib/intern/system.c @@ -181,14 +181,14 @@ char *BLI_cpu_brand_string(void) void BLI_hostname_get(char *buffer, size_t bufsize) { #ifndef WIN32 - if (gethostname(buffer, bufsize-1) < 0) { + if (gethostname(buffer, bufsize - 1) < 0) { BLI_strncpy(buffer, "-unknown-", bufsize); } /* When gethostname() truncates, it doesn't guarantee the trailing \0. */ buffer[bufsize - 1] = '\0'; #else DWORD bufsize_inout = bufsize; - if(!GetComputerName(buffer, &bufsize_inout)) { + if (!GetComputerName(buffer, &bufsize_inout)) { strncpy(buffer, "-unknown-", bufsize); } #endif diff --git a/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc b/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc index ef021c09824..efedf847515 100644 --- a/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc +++ b/source/blender/depsgraph/intern/builder/deg_builder_relations_rig.cc @@ -519,7 +519,7 @@ void DepsgraphRelationBuilder::build_rig(Object *object) add_relation(bone_segments_key, pose_done_key, "PoseEval Result-Bone Link", - DEPSREL_FLAG_GODMODE); + DEPSREL_FLAG_GODMODE); add_relation(bone_segments_key, pose_cleanup_key, "Cleanup dependency"); diff --git a/source/blender/modifiers/intern/MOD_particleinstance.c b/source/blender/modifiers/intern/MOD_particleinstance.c index db552fa2122..0a5b34c90ee 100644 --- a/source/blender/modifiers/intern/MOD_particleinstance.c +++ b/source/blender/modifiers/intern/MOD_particleinstance.c @@ -499,7 +499,7 @@ static Mesh *applyModifier( const int ml_index = (ml - mloop); if (mloopcols_index != NULL) { const int part_index = vert_part_index[ml->v]; - store_float_in_vcol(&mloopcols_index[ml_index], (float)part_index / (float)(psys->totpart-1)); + store_float_in_vcol(&mloopcols_index[ml_index], (float)part_index / (float)(psys->totpart - 1)); } if (mloopcols_value != NULL) { const float part_value = vert_part_value[ml->v]; -- cgit v1.2.3