[Bf-blender-cvs] [1671826] master: Remove redundant casts

Campbell Barton noreply at git.blender.org
Fri Aug 29 08:20:03 CEST 2014


Commit: 167182613d01ba308eba4a77828e7b061559ae4b
Author: Campbell Barton
Date:   Fri Aug 29 16:16:28 2014 +1000
Branches: master
https://developer.blender.org/rB167182613d01ba308eba4a77828e7b061559ae4b

Remove redundant casts

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

M	source/blender/blenlib/intern/callbacks.c

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

diff --git a/source/blender/blenlib/intern/callbacks.c b/source/blender/blenlib/intern/callbacks.c
index 719809e..191be49 100644
--- a/source/blender/blenlib/intern/callbacks.c
+++ b/source/blender/blenlib/intern/callbacks.c
@@ -37,7 +37,7 @@ void BLI_callback_exec(struct Main *main, struct ID *self, eCbEvent evt)
 	ListBase *lb = &callback_slots[evt];
 	bCallbackFuncStore *funcstore;
 
-	for (funcstore = (bCallbackFuncStore *)lb->first; funcstore; funcstore = (bCallbackFuncStore *)funcstore->next) {
+	for (funcstore = lb->first; funcstore; funcstore = funcstore->next) {
 		funcstore->func(main, self, funcstore->arg);
 	}
 }
@@ -61,8 +61,8 @@ void BLI_callback_global_finalize(void)
 		ListBase *lb = &callback_slots[evt];
 		bCallbackFuncStore *funcstore;
 		bCallbackFuncStore *funcstore_next;
-		for (funcstore = (bCallbackFuncStore *)lb->first; funcstore; funcstore = funcstore_next) {
-			funcstore_next = (bCallbackFuncStore *)funcstore->next;
+		for (funcstore = lb->first; funcstore; funcstore = funcstore_next) {
+			funcstore_next = funcstore->next;
 			BLI_remlink(lb, funcstore);
 			if (funcstore->alloc) {
 				MEM_freeN(funcstore);




More information about the Bf-blender-cvs mailing list