diff options
Diffstat (limited to 'src/depoly.cpp')
-rw-r--r-- | src/depoly.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/depoly.cpp b/src/depoly.cpp index 0ee89c1..cb698df 100644 --- a/src/depoly.cpp +++ b/src/depoly.cpp @@ -35,8 +35,8 @@ is_concrete(const AST* type) return isupper(type->as_symbol()->str()[0]); } else { const ATuple* tup = type->as_tuple(); - for (ATuple::const_iterator i = tup->begin(); i != tup->end(); ++i) { - if (!is_concrete(*i)) { + for (auto i : *tup) { + if (!is_concrete(i)) { return false; } } @@ -93,8 +93,8 @@ raise_type(CEnv& cenv, Code& code, const ATuple* type) static const AST* depoly_args(CEnv& cenv, Code& code, const ATuple* call) throw() { - for (ATuple::const_iterator i = call->begin(); i != call->end(); ++i) { - const AST* type = cenv.type(*i); + for (auto i : *call) { + const AST* type = cenv.type(i); if (type && type->to_tuple()) { if (is_concrete(type)) { raise_type(cenv, code, type->as_tuple()); |