Change QUEUE_FOREACH macro to use while instead of for

This commit is contained in:
erw7
2019-10-16 16:23:07 +02:00
committed by Jan Edmund Lazo
parent 4c76b1e981
commit 36caafeb28
5 changed files with 26 additions and 22 deletions

View File

@@ -5289,10 +5289,10 @@ bool set_ref_in_item(typval_T *tv, int copyID, ht_stack_T **ht_stack,
QUEUE *w = NULL;
DictWatcher *watcher = NULL;
QUEUE_FOREACH(w, &dd->watchers) {
QUEUE_FOREACH(w, &dd->watchers, {
watcher = tv_dict_watcher_node_data(w);
set_ref_in_callback(&watcher->callback, copyID, ht_stack, list_stack);
}
})
}
break;
}