Cleanup: code style
[blender.git] / source / blender / blenloader / intern / versioning_280.c
index a5d2ced6858d598e48a16381601393ea0ef6d416..e7d4e4f33aea0e48932a15b3ff06f79061842d12 100644 (file)
@@ -114,7 +114,7 @@ static void do_version_workspaces_create_from_screens(Main *bmain)
                else {
                        workspace = BKE_workspace_add(bmain, screen->id.name + 2);
                }
-               BKE_workspace_layout_add(workspace, screen, screen->id.name + 2);
+               BKE_workspace_layout_add(bmain, workspace, screen, screen->id.name + 2);
                BKE_workspace_view_layer_set(workspace, layer, scene);
        }
 }
@@ -1592,7 +1592,7 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
                                if (ima->type == IMA_TYPE_R_RESULT) {
                                        for (int i = 0; i < 8; i++) {
                                                RenderSlot *slot = MEM_callocN(sizeof(RenderSlot), "Image Render Slot Init");
-                                               BLI_snprintf(slot->name, sizeof(slot->name), "Slot %d", i+1);
+                                               BLI_snprintf(slot->name, sizeof(slot->name), "Slot %d", i + 1);
                                                BLI_addtail(&ima->renderslots, slot);
                                        }
                                }