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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to