From b8a71efeba70d6c3ebc579f5043daa4162da86e8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sat, 24 Mar 2012 07:52:14 +0000 Subject: style cleanup: follow style guide for/with/if spacing --- source/blender/editors/space_outliner/outliner_draw.c | 10 +++++----- source/blender/editors/space_outliner/outliner_select.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'source/blender/editors/space_outliner') diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c index 1c58c4152f0..73289dce968 100644 --- a/source/blender/editors/space_outliner/outliner_draw.c +++ b/source/blender/editors/space_outliner/outliner_draw.c @@ -95,7 +95,7 @@ static void outliner_height(SpaceOops *soops, ListBase *lb, int *h) { TreeElement *te= lb->first; - while(te) { + while (te) { TreeStoreElem *tselem= TREESTORE(te); if (TSELEM_OPEN(tselem,soops)) outliner_height(soops, &te->subtree, h); @@ -108,7 +108,7 @@ static void outliner_height(SpaceOops *soops, ListBase *lb, int *h) static void outliner_width(SpaceOops *soops, ListBase *lb, int *w) { TreeElement *te= lb->first; - while(te) { + while (te) { // TreeStoreElem *tselem= TREESTORE(te); // XXX fixme... te->xend is not set yet @@ -125,7 +125,7 @@ static void outliner_width(SpaceOops *soops, ListBase *lb, int *w) static void outliner_rna_width(SpaceOops *soops, ListBase *lb, int *w, int startx) { TreeElement *te= lb->first; - while(te) { + while (te) { TreeStoreElem *tselem= TREESTORE(te); // XXX fixme... (currently, we're using a fixed length of 100)! #if 0 @@ -1550,7 +1550,7 @@ static void outliner_back(ARegion *ar) ystart= (int)ar->v2d.tot.ymax; ystart= UI_UNIT_Y*(ystart/(UI_UNIT_Y))-OL_Y_OFFSET; - while(ystart+2*UI_UNIT_Y > ar->v2d.cur.ymin) { + while (ystart+2*UI_UNIT_Y > ar->v2d.cur.ymin) { glRecti(0, ystart, (int)ar->v2d.cur.xmax+V2D_SCROLL_WIDTH, ystart+UI_UNIT_Y); ystart-= 2*UI_UNIT_Y; } @@ -1568,7 +1568,7 @@ static void outliner_draw_restrictcols(ARegion *ar) ystart= (int)ar->v2d.tot.ymax; ystart= UI_UNIT_Y*(ystart/(UI_UNIT_Y))-OL_Y_OFFSET; - while(ystart+2*UI_UNIT_Y > ar->v2d.cur.ymin) { + while (ystart+2*UI_UNIT_Y > ar->v2d.cur.ymin) { glRecti((int)ar->v2d.cur.xmax-OL_TOGW, ystart, (int)ar->v2d.cur.xmax, ystart+UI_UNIT_Y); ystart-= 2*UI_UNIT_Y; } diff --git a/source/blender/editors/space_outliner/outliner_select.c b/source/blender/editors/space_outliner/outliner_select.c index e64804b6090..c7aa4dc4e92 100644 --- a/source/blender/editors/space_outliner/outliner_select.c +++ b/source/blender/editors/space_outliner/outliner_select.c @@ -631,7 +631,7 @@ static int tree_element_active_sequence_dup(Scene *scene, TreeElement *te, TreeS // XXX select_single_seq(seq, 1); p= ed->seqbasep->first; - while(p) { + while (p) { if ((!p->strip) || (!p->strip->stripdata) || (!p->strip->stripdata->name)) { p= p->next; continue; -- cgit v1.2.3