From 52fe6cabbbaa59cd50e95306bb1b6d357037fa50 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Thu, 14 Jan 2016 16:17:41 -0800 Subject: improve a for loop --- src/wasm-binary.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/wasm-binary.h b/src/wasm-binary.h index 1eb82dc44..279da1f93 100644 --- a/src/wasm-binary.h +++ b/src/wasm-binary.h @@ -567,7 +567,7 @@ public: o << int8_t(BinaryConsts::Block) << int8_t(curr->list.size()); breakStack.push_back(curr->name); size_t i = 0; - for (auto child : curr->list) { + for (auto& child : curr->list) { if (debug) std::cerr << " " << size_t(curr) << "\n zz Block element " << i++ << std::endl; recurse(child); } -- cgit v1.2.3