Cleanup: unused var
authorCampbell Barton <ideasman42@gmail.com>
Fri, 15 Jun 2018 06:02:17 +0000 (08:02 +0200)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 15 Jun 2018 06:03:19 +0000 (08:03 +0200)
source/blender/blenloader/intern/readfile.c
source/blender/editors/undo/ed_undo.c

index b251693..9267e95 100644 (file)
@@ -3923,10 +3923,9 @@ static void direct_link_image(FileData *fd, Image *ima)
        /* undo system, try to restore render buffers */
        link_list(fd, &(ima->renderslots));
        if (fd->imamap) {
-               int a;
-               
-               LISTBASE_FOREACH(RenderSlot *, slot, &ima->renderslots)
+               LISTBASE_FOREACH(RenderSlot *, slot, &ima->renderslots) {
                        slot->render = newimaadr(fd, slot->render);
+               }
        }
        else {
                LISTBASE_FOREACH(RenderSlot *, slot, &ima->renderslots)
index 102065f..a28e24b 100644 (file)
@@ -319,7 +319,7 @@ int ED_undo_operator_repeat(bContext *C, wmOperator *op)
                /* keep in sync with logic in view3d_panel_operator_redo() */
                ARegion *ar_orig = CTX_wm_region(C);
                ARegion *ar_win = BKE_area_find_region_active_win(CTX_wm_area(C));
-               
+
                if (ar_win) {
                        CTX_wm_region_set(C, ar_win);
                }