From aba4e6810f8b4d0e459137b64e061a2cadc457d1 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 31 May 2019 23:21:16 +1000 Subject: Cleanup: style, use braces in source/ (include disabled blocks) --- source/blender/editors/space_file/filelist.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'source/blender/editors/space_file') diff --git a/source/blender/editors/space_file/filelist.c b/source/blender/editors/space_file/filelist.c index 564dd0ec81d..f2d1b6eab83 100644 --- a/source/blender/editors/space_file/filelist.c +++ b/source/blender/editors/space_file/filelist.c @@ -2471,13 +2471,15 @@ static void filelist_readjob_main_rec(Main *bmain, FileList *filelist) BLI_assert(filelist->filelist.entries == NULL); - if (filelist->filelist.root[0] == '/') + if (filelist->filelist.root[0] == '/') { filelist->filelist.root[0] = '\0'; + } if (filelist->filelist.root[0]) { idcode = groupname_to_code(filelist->filelist.root); - if (idcode == 0) + if (idcode == 0) { filelist->filelist.root[0] = '\0'; + } } if (filelist->dir[0] == 0) { @@ -2525,8 +2527,9 @@ static void filelist_readjob_main_rec(Main *bmain, FileList *filelist) idcode = groupname_to_code(filelist->filelist.root); lb = which_libbase(bmain, idcode); - if (lb == NULL) + if (lb == NULL) { return; + } filelist->filelist.nbr_entries = 0; for (id = lb->first; id; id = id->next) { @@ -2537,8 +2540,9 @@ static void filelist_readjob_main_rec(Main *bmain, FileList *filelist) /* XXX TODO: if databrowse F4 or append/link * filelist->flags & FLF_HIDE_PARENT has to be set */ - if (!(filelist->filter_data.flags & FLF_HIDE_PARENT)) + if (!(filelist->filter_data.flags & FLF_HIDE_PARENT)) { filelist->filelist.nbr_entries++; + } if (filelist->filelist.nbr_entries > 0) { filelist_resize(filelist, filelist->filelist.nbr_entries); @@ -2604,8 +2608,9 @@ static void filelist_readjob_main_rec(Main *bmain, FileList *filelist) # endif if (id->lib) { - if (totlib == 0) + if (totlib == 0) { firstlib = files; + } totlib++; } -- cgit v1.2.3