diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-03-24 11:52:14 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-03-24 11:52:14 +0400 |
commit | b8a71efeba70d6c3ebc579f5043daa4162da86e8 (patch) | |
tree | d2d89da2a59f8955583f4968a35e48c578fd4d4c /source/gameengine/SceneGraph | |
parent | 81d8f17843f92c6d6abbacb652ca22917910f4bc (diff) |
style cleanup: follow style guide for/with/if spacing
Diffstat (limited to 'source/gameengine/SceneGraph')
-rw-r--r-- | source/gameengine/SceneGraph/SG_Tree.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/gameengine/SceneGraph/SG_Tree.cpp b/source/gameengine/SceneGraph/SG_Tree.cpp index 87c618fd214..738c0fdef22 100644 --- a/source/gameengine/SceneGraph/SG_Tree.cpp +++ b/source/gameengine/SceneGraph/SG_Tree.cpp @@ -182,7 +182,7 @@ public: void resize(unsigned int size) { m_array.resize(size); - for( unsigned int i = 0; i < size; i++) + for ( unsigned int i = 0; i < size; i++) { m_array[i].resize(size - i); } @@ -353,11 +353,11 @@ SG_Tree* SG_TreeFactory::MakeTreeUp() unsigned int x, y; TreeSet::iterator xit, yit; - for( y = 0, yit = m_objects.begin(); y < num_objects; y++, ++yit) + for ( y = 0, yit = m_objects.begin(); y < num_objects; y++, ++yit) { sizes(y, y) = *yit; xit = yit; - for( x = y+1, ++xit; x < num_objects; x++, ++xit) + for ( x = y+1, ++xit; x < num_objects; x++, ++xit) { sizes(x, y) = new SG_Tree(*xit, *yit); @@ -370,9 +370,9 @@ SG_Tree* SG_TreeFactory::MakeTreeUp() MT_Scalar min_volume = FLT_MAX; SG_Tree *min = NULL; //char temp[16]; - for( y = 0; y < num_objects; y++) + for ( y = 0; y < num_objects; y++) { - for( x = y+1; x < num_objects; x++) + for ( x = y+1; x < num_objects; x++) { if (sizes(x, y)->volume() < min_volume) { @@ -387,7 +387,7 @@ SG_Tree* SG_TreeFactory::MakeTreeUp() /* Remove other bboxes that contain the two bboxes */ sizes.delete_column(miny); - for( x = miny + 1; x < num_objects; x++) + for ( x = miny + 1; x < num_objects; x++) { if (x == minx) continue; @@ -398,12 +398,12 @@ SG_Tree* SG_TreeFactory::MakeTreeUp() num_objects--; minx--; sizes(minx, minx) = min; - for( x = minx + 1; x < num_objects; x++) + for ( x = minx + 1; x < num_objects; x++) { delete sizes(x, minx); sizes(x, minx) = new SG_Tree(min, sizes(x, x)); } - for( y = 0; y < minx; y++) + for ( y = 0; y < minx; y++) { delete sizes(minx, y); sizes(minx, y) = new SG_Tree(sizes(y, y), min); |