From 605ff69b0dbcf3206e4c9af50732083be0c908de Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Fri, 26 Mar 2010 17:17:41 -0700 Subject: [PATCH] Add missing parenthesis in foreach_iter This allows uses like 'foreach_iter(exec_list_iterator, iter, *list_ptr)'. --- list.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/list.h b/list.h index d122369f13b..33b038ce8da 100644 --- a/list.h +++ b/list.h @@ -183,7 +183,7 @@ private: }; #define foreach_iter(iter_type, iter, container) \ - for (iter_type iter = container . iterator(); iter.has_next(); iter.next()) + for (iter_type iter = (container) . iterator(); iter.has_next(); iter.next()) #endif -- 2.30.2