diff options
Diffstat (limited to 'src/flatten.cpp')
-rw-r--r-- | src/flatten.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flatten.cpp b/src/flatten.cpp index ca849fa..b190832 100644 --- a/src/flatten.cpp +++ b/src/flatten.cpp @@ -40,8 +40,8 @@ flatten_def(CEnv& cenv, Code& code, const ATuple* def) throw() const ATuple* fn = (*def->iter_at(2))->as_tuple(); const ATuple* prot = fn->frst()->as_tuple(); List pre(Cursor(), cenv.penv.sym("fn-start"), sym, 0); - for (ATuple::const_iterator i = prot->begin(); i != prot->end(); ++i) - pre.push_back(*i); + for (auto p : *prot) + pre.push_back(p); code.push_back(pre); |