diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-08-29 10:16:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-08-29 10:16:28 +0400 |
commit | 167182613d01ba308eba4a77828e7b061559ae4b (patch) | |
tree | ae626df305e901873641f1dd8f229610c54aad26 /source/blender | |
parent | 8a215669e8668b81610903a80a0c11e1cf64ccac (diff) |
Remove redundant casts
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenlib/intern/callbacks.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/blenlib/intern/callbacks.c b/source/blender/blenlib/intern/callbacks.c index 719809e6bcd..191be49263c 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); |