diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-03-05 01:09:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-03-05 01:12:07 +0300 |
commit | acebfbb6669b4f0c546068777c7f11146aad3def (patch) | |
tree | b20db009b21a703a4daa5400dbc72e8196e59a78 /source/blender/editors/interface | |
parent | 55137629462d3ca2fb152b56cfe26507bdd2c352 (diff) |
Cleanup: unnecessary comma use
Diffstat (limited to 'source/blender/editors/interface')
-rw-r--r-- | source/blender/editors/interface/interface.c | 10 | ||||
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 3 |
2 files changed, 6 insertions, 7 deletions
diff --git a/source/blender/editors/interface/interface.c b/source/blender/editors/interface/interface.c index 32c9177fafe..c22055701ee 100644 --- a/source/blender/editors/interface/interface.c +++ b/source/blender/editors/interface/interface.c @@ -3577,11 +3577,11 @@ static int findBitIndex(unsigned int x) else { int idx = 0; - if (x & 0xFFFF0000) idx += 16, x >>= 16; - if (x & 0xFF00) idx += 8, x >>= 8; - if (x & 0xF0) idx += 4, x >>= 4; - if (x & 0xC) idx += 2, x >>= 2; - if (x & 0x2) idx += 1; + if (x & 0xFFFF0000) { idx += 16; x >>= 16; } + if (x & 0xFF00) { idx += 8; x >>= 8; } + if (x & 0xF0) { idx += 4; x >>= 4; } + if (x & 0xC) { idx += 2; x >>= 2; } + if (x & 0x2) { idx += 1; } return idx; } diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c index 2daf3f7ba70..e802cf82b8e 100644 --- a/source/blender/editors/interface/interface_layout.c +++ b/source/blender/editors/interface/interface_layout.c @@ -2264,7 +2264,6 @@ static void ui_litem_layout_radial(uiLayout *litem) int itemnum = 0; int totitems = 0; - int minx, miny, maxx, maxy; /* For the radial layout we will use Matt Ebb's design * for radiation, see http://mattebb.com/weblog/radiation/ * also the old code at http://developer.blender.org/T5103 @@ -2275,7 +2274,7 @@ static void ui_litem_layout_radial(uiLayout *litem) x = litem->x; y = litem->y; - minx = x, miny = y, maxx = x, maxy = y; + int minx = x, miny = y, maxx = x, maxy = y; /* first count total items */ for (item = litem->items.first; item; item = item->next) |