From ab4a2aaf4a4b2b4e416aa1f113b30362cbe0dec3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 24 Mar 2012 06:38:07 +0000 Subject: style cleanup: follow style guide for formatting of if/for/while loops, and else if's --- source/blender/editors/space_api/spacetypes.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'source/blender/editors/space_api') diff --git a/source/blender/editors/space_api/spacetypes.c b/source/blender/editors/space_api/spacetypes.c index b876003c059..31243184961 100644 --- a/source/blender/editors/space_api/spacetypes.c +++ b/source/blender/editors/space_api/spacetypes.c @@ -117,8 +117,8 @@ void ED_spacetypes_init(void) /* register operators */ spacetypes = BKE_spacetypes_list(); - for(type=spacetypes->first; type; type=type->next) { - if(type->operatortypes) + for (type=spacetypes->first; type; type=type->next) { + if (type->operatortypes) type->operatortypes(); } @@ -136,8 +136,8 @@ void ED_spacetypes_init(void) /* register dropboxes (can use macros) */ spacetypes = BKE_spacetypes_list(); - for(type=spacetypes->first; type; type=type->next) { - if(type->dropboxes) + for (type=spacetypes->first; type; type=type->next) { + if (type->dropboxes) type->dropboxes(); } @@ -169,11 +169,11 @@ void ED_spacetypes_keymap(wmKeyConfig *keyconf) UI_view2d_keymap(keyconf); spacetypes = BKE_spacetypes_list(); - for(stype=spacetypes->first; stype; stype=stype->next) { - if(stype->keymap) + for (stype=spacetypes->first; stype; stype=stype->next) { + if (stype->keymap) stype->keymap(keyconf); - for(atype=stype->regiontypes.first; atype; atype=atype->next) { - if(atype->keymap) + for (atype=stype->regiontypes.first; atype; atype=atype->next) { + if (atype->keymap) atype->keymap(keyconf); } } @@ -209,8 +209,8 @@ void ED_region_draw_cb_exit(ARegionType *art, void *handle) { RegionDrawCB *rdc; - for(rdc= art->drawcalls.first; rdc; rdc= rdc->next) { - if(rdc==(RegionDrawCB *)handle) { + for (rdc= art->drawcalls.first; rdc; rdc= rdc->next) { + if (rdc==(RegionDrawCB *)handle) { BLI_remlink(&art->drawcalls, rdc); MEM_freeN(rdc); return; @@ -227,8 +227,8 @@ void ED_region_draw_cb_draw(const bContext *C, ARegion *ar, int type) { RegionDrawCB *rdc; - for(rdc= ar->type->drawcalls.first; rdc; rdc= rdc->next) { - if(rdc->type==type) + for (rdc= ar->type->drawcalls.first; rdc; rdc= rdc->next) { + if (rdc->type==type) rdc->draw(C, ar, rdc->customdata); } } -- cgit v1.2.3