code cleanup: favor braces when blocks have mixed brace use.
[blender.git] / source / blender / editors / interface / interface_templates.c
index bddd7f0..9cc45f5 100644 (file)
@@ -281,7 +281,9 @@ static void template_id_cb(bContext *C, void *arg_litem, void *arg_event)
                                if (id->flag & LIB_FAKEUSER) id_us_plus(id);
                                else id_us_min(id);
                        }
-                       else return;
+                       else {
+                               return;
+                       }
                        break;
                case UI_ID_LOCAL:
                        if (id) {
@@ -2585,7 +2587,8 @@ void uiTemplateList(uiLayout *layout, bContext *C, const char *listtype_name, co
 
                /* if list length changes and active is out of view, scroll to it */
                if ((ui_list->list_last_len != len) &&
-                   (activei < ui_list->list_scroll || activei >= ui_list->list_scroll + items)) {
+                   (activei < ui_list->list_scroll || activei >= ui_list->list_scroll + items))
+               {
                        ui_list->list_scroll = activei;
                }
 
@@ -2717,7 +2720,7 @@ static void operator_search_cb(const bContext *C, void *UNUSED(arg), const char
 {
        GHashIterator *iter = WM_operatortype_iter();
 
-       for (; !BLI_ghashIterator_isDone(iter); BLI_ghashIterator_step(iter)) {
+       for (; BLI_ghashIterator_notDone(iter); BLI_ghashIterator_step(iter)) {
                wmOperatorType *ot = BLI_ghashIterator_getValue(iter);
 
                if ((ot->flag & OPTYPE_INTERNAL) && (G.debug & G_DEBUG_WM) == 0)