[Bf-blender-cvs] [4d7ad82347c] master: Cleanup: Use LISTBASE_FOREACH

Hans Goudey noreply at git.blender.org
Wed Nov 4 21:14:29 CET 2020


Commit: 4d7ad82347cb3db93704da98f9744aeb7de3f428
Author: Hans Goudey
Date:   Wed Nov 4 14:14:16 2020 -0600
Branches: master
https://developer.blender.org/rB4d7ad82347cb3db93704da98f9744aeb7de3f428

Cleanup: Use LISTBASE_FOREACH

===================================================================

M	source/blender/windowmanager/intern/wm_operator_type.c

===================================================================

diff --git a/source/blender/windowmanager/intern/wm_operator_type.c b/source/blender/windowmanager/intern/wm_operator_type.c
index 523147cd4f3..7621862708e 100644
--- a/source/blender/windowmanager/intern/wm_operator_type.c
+++ b/source/blender/windowmanager/intern/wm_operator_type.c
@@ -325,13 +325,11 @@ static int wm_macro_end(wmOperator *op, int retval)
 /* macro exec only runs exec calls */
 static int wm_macro_exec(bContext *C, wmOperator *op)
 {
-  wmOperator *opm;
   int retval = OPERATOR_FINISHED;
 
   wm_macro_start(op);
 
-  for (opm = op->macro.first; opm; opm = opm->next) {
-
+  LISTBASE_FOREACH (wmOperator *, opm, &op->macro) {
     if (opm->type->exec) {
       retval = opm->type->exec(C, opm);
       OPERATOR_RETVAL_CHECK(retval);



More information about the Bf-blender-cvs mailing list