[Bf-blender-cvs] [fa823dc] master: Cleanup: style

Campbell Barton noreply at git.blender.org
Tue Jun 16 02:38:05 CEST 2015


Commit: fa823dc828a3135d040f95a6977cdc516cabbe8e
Author: Campbell Barton
Date:   Tue Jun 16 10:18:45 2015 +1000
Branches: master
https://developer.blender.org/rBfa823dc828a3135d040f95a6977cdc516cabbe8e

Cleanup: style

===================================================================

M	source/blender/blenkernel/intern/library.c
M	source/blender/bmesh/intern/bmesh_core.c
M	source/blender/compositor/intern/COM_MemoryBuffer.cpp
M	source/blender/depsgraph/intern/depsgraph_build_relations.cc
M	source/blender/depsgraph/intern/depsgraph_eval.cc
M	source/blender/editors/animation/keyframing.c
M	source/blender/editors/interface/interface_regions.c
M	source/blender/editors/mask/mask_edit.c
M	source/blender/editors/sculpt_paint/paint_utils.c
M	source/blender/editors/space_file/file_ops.c
M	source/blender/editors/space_sequencer/sequencer_modifier.c
M	source/blender/makesrna/intern/rna_scene.c
M	source/blender/physics/intern/BPH_mass_spring.cpp
M	source/blender/python/mathutils/mathutils.c
M	source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp

===================================================================

diff --git a/source/blender/blenkernel/intern/library.c b/source/blender/blenkernel/intern/library.c
index 39bcf51..b707691 100644
--- a/source/blender/blenkernel/intern/library.c
+++ b/source/blender/blenkernel/intern/library.c
@@ -1423,7 +1423,7 @@ void id_clear_lib_data(Main *bmain, ID *id)
 	}
 
 	if (GS(id->name) == ID_OB) {
-		Object *object = (Object*)id;
+		Object *object = (Object *)id;
 		if (object->proxy_from != NULL) {
 			object->proxy_from->proxy = NULL;
 			object->proxy_from->proxy_group = NULL;
diff --git a/source/blender/bmesh/intern/bmesh_core.c b/source/blender/bmesh/intern/bmesh_core.c
index 20a88b0..4c09a35 100644
--- a/source/blender/bmesh/intern/bmesh_core.c
+++ b/source/blender/bmesh/intern/bmesh_core.c
@@ -2457,7 +2457,7 @@ BMVert *bmesh_urmv_loop(BMesh *bm, BMLoop *l_sep)
 /**
  * A version of #bmesh_urmv_loop that disconnects multiple loops at once.
  *
- * Handles the task of finding fans boundaris.
+ * Handles the task of finding fans boundaries.
  */
 BMVert *bmesh_urmv_loop_multi(
         BMesh *bm, BMLoop **larr, int larr_len)
diff --git a/source/blender/compositor/intern/COM_MemoryBuffer.cpp b/source/blender/compositor/intern/COM_MemoryBuffer.cpp
index 9e6e5a4..2dbf0a6 100644
--- a/source/blender/compositor/intern/COM_MemoryBuffer.cpp
+++ b/source/blender/compositor/intern/COM_MemoryBuffer.cpp
@@ -64,7 +64,7 @@ MemoryBuffer::MemoryBuffer(MemoryProxy *memoryProxy, unsigned int chunkNumber, r
 	this->m_num_channels = determine_num_channels(memoryProxy->getDataType());
 	this->m_buffer = (float *)MEM_mallocN_aligned(sizeof(float) * determineBufferSize() * this->m_num_channels, 16, "COM_MemoryBuffer");
 	this->m_state = COM_MB_ALLOCATED;
-	this->m_datatype = memoryProxy->getDataType();;
+	this->m_datatype = memoryProxy->getDataType();
 }
 
 MemoryBuffer::MemoryBuffer(MemoryProxy *memoryProxy, rcti *rect)
diff --git a/source/blender/depsgraph/intern/depsgraph_build_relations.cc b/source/blender/depsgraph/intern/depsgraph_build_relations.cc
index 20c059d..41c8054 100644
--- a/source/blender/depsgraph/intern/depsgraph_build_relations.cc
+++ b/source/blender/depsgraph/intern/depsgraph_build_relations.cc
@@ -426,9 +426,9 @@ void DepsgraphRelationBuilder::build_object(Main *bmain, Scene *scene, Object *o
 				break;
 		}
 
-		Key *key =BKE_key_from_object(ob);
+		Key *key = BKE_key_from_object(ob);
 		if (key != NULL) {
-			ComponentKey geometry_key((ID*)ob->data, DEPSNODE_TYPE_GEOMETRY);
+			ComponentKey geometry_key((ID *)ob->data, DEPSNODE_TYPE_GEOMETRY);
 			ComponentKey key_key(&key->id, DEPSNODE_TYPE_GEOMETRY);
 			add_relation(key_key, geometry_key, DEPSREL_TYPE_GEOMETRY_EVAL, "Shapekeys");
 		}
diff --git a/source/blender/depsgraph/intern/depsgraph_eval.cc b/source/blender/depsgraph/intern/depsgraph_eval.cc
index 1709693..0a1563e 100644
--- a/source/blender/depsgraph/intern/depsgraph_eval.cc
+++ b/source/blender/depsgraph/intern/depsgraph_eval.cc
@@ -369,7 +369,7 @@ void DEG_evaluate_on_refresh(EvaluationContext *eval_ctx,
 {
 	/* Update time on primary timesource. */
 	TimeSourceDepsNode *tsrc = graph->find_time_source();
-	tsrc->cfra = BKE_scene_frame_get(scene);;
+	tsrc->cfra = BKE_scene_frame_get(scene);
 
 	DEG_evaluate_on_refresh_ex(eval_ctx, graph, graph->layers);
 }
diff --git a/source/blender/editors/animation/keyframing.c b/source/blender/editors/animation/keyframing.c
index ab43048..85ea552 100644
--- a/source/blender/editors/animation/keyframing.c
+++ b/source/blender/editors/animation/keyframing.c
@@ -1814,8 +1814,8 @@ static int delete_key_button_exec(bContext *C, wmOperator *op)
 			
 			if (BKE_fcurve_is_protected(fcu)) {
 				BKE_reportf(op->reports, RPT_WARNING,
-							"Not deleting keyframe for locked F-Curve for NLA Strip influence on %s - %s '%s'",
-							strip->name, BKE_idcode_to_name(GS(id->name)), id->name + 2);
+				            "Not deleting keyframe for locked F-Curve for NLA Strip influence on %s - %s '%s'",
+				            strip->name, BKE_idcode_to_name(GS(id->name)), id->name + 2);
 			}
 			else {
 				/* remove the keyframe directly
diff --git a/source/blender/editors/interface/interface_regions.c b/source/blender/editors/interface/interface_regions.c
index 8a6df2c..6aabbbe 100644
--- a/source/blender/editors/interface/interface_regions.c
+++ b/source/blender/editors/interface/interface_regions.c
@@ -1637,7 +1637,7 @@ static void ui_popup_block_remove(bContext *C, uiPopupBlockHandle *handle)
 }
 
 /**
- * Called for creatign new popups and refreshing existing ones.
+ * Called for creating new popups and refreshing existing ones.
  */
 uiBlock *ui_popup_block_refresh(
         bContext *C, uiPopupBlockHandle *handle,
diff --git a/source/blender/editors/mask/mask_edit.c b/source/blender/editors/mask/mask_edit.c
index 38ca22a..e1a58d5 100644
--- a/source/blender/editors/mask/mask_edit.c
+++ b/source/blender/editors/mask/mask_edit.c
@@ -409,7 +409,7 @@ bool ED_mask_selected_minmax(const bContext *C, float min[2], float max[2])
 	     mask_layer = mask_layer->next)
 	{
 		MaskSpline *spline;
-		if (mask_layer->restrictflag & (MASK_RESTRICT_VIEW|MASK_RESTRICT_SELECT)) {
+		if (mask_layer->restrictflag & (MASK_RESTRICT_VIEW | MASK_RESTRICT_SELECT)) {
 			continue;
 		}
 		for (spline = mask_layer->splines.first;
diff --git a/source/blender/editors/sculpt_paint/paint_utils.c b/source/blender/editors/sculpt_paint/paint_utils.c
index bdf11de..4e55054 100644
--- a/source/blender/editors/sculpt_paint/paint_utils.c
+++ b/source/blender/editors/sculpt_paint/paint_utils.c
@@ -395,7 +395,7 @@ static Image *imapaint_face_image(Object *ob, Mesh *me, int face_index)
 {
 	Image *ima;
 	MPoly *mp = me->mpoly + face_index;
-	Material *ma = give_current_material(ob, mp->mat_nr + 1);;
+	Material *ma = give_current_material(ob, mp->mat_nr + 1);
 	ima = ma && ma->texpaintslot ? ma->texpaintslot[ma->paint_active_slot].ima : NULL;
 
 	return ima;
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c
index db93000..8c9233e 100644
--- a/source/blender/editors/space_file/file_ops.c
+++ b/source/blender/editors/space_file/file_ops.c
@@ -483,17 +483,17 @@ static bool file_walk_select_selection_set(
 		    filelist_is_selected(files, active_old, FILE_SEL_SELECTED) &&
 		    filelist_is_selected(files, active_new, FILE_SEL_SELECTED))
 		{
-				/* conditions for deselecting: initial file is selected, new file is
-				 * selected and either other_side isn't selected/found or we use fill */
-				deselect = (fill || other_site == -1 || !filelist_is_selected(files, other_site, FILE_SEL_SELECTED));
-
-				/* don't change active here since we either want to deselect active or we want to
-				 * walk through a block of selected files without selecting/deselecting anything */
-				params->active_file = active_new;
-				/* but we want to change active if we use fill (needed to get correct selection bounds) */
-				if (deselect && fill) {
-					active = active_new;
-				}
+			/* conditions for deselecting: initial file is selected, new file is
+			 * selected and either other_side isn't selected/found or we use fill */
+			deselect = (fill || other_site == -1 || !filelist_is_selected(files, other_site, FILE_SEL_SELECTED));
+
+			/* don't change active here since we either want to deselect active or we want to
+			 * walk through a block of selected files without selecting/deselecting anything */
+			params->active_file = active_new;
+			/* but we want to change active if we use fill (needed to get correct selection bounds) */
+			if (deselect && fill) {
+				active = active_new;
+			}
 		}
 		else {
 			/* regular selection change */
diff --git a/source/blender/editors/space_sequencer/sequencer_modifier.c b/source/blender/editors/space_sequencer/sequencer_modifier.c
index 76ce73b..6faf83d 100644
--- a/source/blender/editors/space_sequencer/sequencer_modifier.c
+++ b/source/blender/editors/space_sequencer/sequencer_modifier.c
@@ -226,7 +226,7 @@ static int strip_modifier_copy_exec(bContext *C, wmOperator *UNUSED(op))
 		if (seq_iter->modifiers.first) {
 			SequenceModifierData *smd_tmp, *smd = seq_iter->modifiers.first;
 
-			while(smd) {
+			while (smd) {
 				smd_tmp = smd->next;
 				BLI_remlink(&seq_iter->modifiers, smd);
 				BKE_sequence_modifier_free(smd);
diff --git a/source/blender/makesrna/intern/rna_scene.c b/source/blender/makesrna/intern/rna_scene.c
index ea72671..87118e2 100644
--- a/source/blender/makesrna/intern/rna_scene.c
+++ b/source/blender/makesrna/intern/rna_scene.c
@@ -1928,7 +1928,7 @@ char *rna_GPUDOF_path(PointerRNA *ptr)
 		}
 	}
 
-	return BLI_strdup("");;
+	return BLI_strdup("");
 }
 
 static void rna_GPUFXSettings_fx_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr)
diff --git a/source/blender/physics/intern/BPH_mass_spring.cpp b/source/blender/physics/intern/BPH_mass_spring.cpp
index 9f60505..ff211e7 100644
--- a/source/blender/physics/intern/BPH_mass_spring.cpp
+++ b/source/blender/physics/intern/BPH_mass_spring.cpp
@@ -859,7 +859,7 @@ static void cloth_collision_solve_extra(Object *ob, ClothModifierData *clmd, Lis
 	Implicit_Data *id = cloth->implicit;
 	ClothVertex *verts = cloth->verts;
 	int numverts = cloth->numverts;
-	const float spf = (float)clmd->sim_parms->stepsPerFrame / clmd->sim_parms->timescale;;
+	const float spf = (float)clmd->sim_parms->stepsPerFrame / clmd->sim_parms->timescale;
 	
 	bool do_extra_solve;
 	int i;
diff --git a/source/blender/python/mathutils/mathutils.c b/source/blender/python/mathutils/mathutils.c
index 7b51b08..9ec5e90 100644
--- a/source/blender/python/mathutils/mathutils.c
+++ b/source/blender/python/mathutils/mathutils.c
@@ -535,7 +535,7 @@ PyObject *BaseMathObject_freeze(BaseMathObject *self)
 
 	self->flag |= BASE_MATH_FLAG_IS_FROZEN;
 
-	return Py_INCREF_RET((PyObject *)self);;
+	return Py_INCREF_RET((PyObject *)self);
 }
 
 int BaseMathObject_traverse(BaseMathObject *self, visitproc visit, void *arg)
diff --git a/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp b/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp
index 3670d79..96505fa 100644
--- a/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp
+++ b/source/gameengine/Physics/Bullet/CcdPhysicsEnvironme

@@ Diff output truncated at 10240 characters. @@




More information about the Bf-blender-cvs mailing list