diff options
author | Hans Goudey <h.goudey@me.com> | 2020-11-04 23:14:16 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-11-04 23:14:16 +0300 |
commit | 4d7ad82347cb3db93704da98f9744aeb7de3f428 (patch) | |
tree | 47c90fb5c4e07aa13b6f17d5c7cd16895ba27f53 | |
parent | f45d79f180082298f633287cc35beafaa713ced0 (diff) |
Cleanup: Use LISTBASE_FOREACH
-rw-r--r-- | source/blender/windowmanager/intern/wm_operator_type.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); |