diff options
author | Hans Goudey <h.goudey@me.com> | 2020-12-04 22:50:53 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-12-04 22:50:53 +0300 |
commit | 67faa85fb05defa5c596ac6549deb52a3654c3a7 (patch) | |
tree | bd8223b34c7873aeee6b253301178627115380d3 /source/blender/windowmanager/intern/wm_init_exit.c | |
parent | 3daf28388b7372208cbec870f51b37be3aeac1e9 (diff) |
Cleanup: Use LISTBASE_FOREACH macro in windowmanager intern
Also decrease the scope of variables related to the loops.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_init_exit.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_init_exit.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/source/blender/windowmanager/intern/wm_init_exit.c b/source/blender/windowmanager/intern/wm_init_exit.c index 74f352c0b62..7984c2fd879 100644 --- a/source/blender/windowmanager/intern/wm_init_exit.c +++ b/source/blender/windowmanager/intern/wm_init_exit.c @@ -412,9 +412,7 @@ void WM_init_splash(bContext *C) /* free strings of open recent files */ static void free_openrecent(void) { - struct RecentFile *recent; - - for (recent = G.recent_files.first; recent; recent = recent->next) { + LISTBASE_FOREACH (RecentFile *, recent, &G.recent_files) { MEM_freeN(recent->filepath); } |