We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 661ccb3 commit a73e244Copy full SHA for a73e244
2 files changed
src/ast/substitution/substitution.cpp
@@ -301,10 +301,8 @@ bool substitution::acyclic(expr_offset p) {
301
bool substitution::acyclic() {
302
m_color.reset();
303
expr_offset r;
304
- svector<var_offset>::iterator it = m_vars.begin();
305
- svector<var_offset>::iterator end = m_vars.end();
306
- for (; it != end; ++it) {
307
- m_subst.find(it->first, it->second, r);
+ for (auto const& [k, v] : m_vars) {
+ m_subst.find(k, v, r);
308
if (!acyclic(r))
309
return false;
310
}
src/util/dlist.h
@@ -210,7 +210,7 @@ class dll_iterator {
210
return *this;
211
212
213
- T const& operator*() const {
+ T const & operator*() const {
214
return *m_elem;
215
216
bool operator!=(dll_iterator const& other) const {
0 commit comments