From 5430bb4bc63e254af23bd0006f25aef33f3cbdcf Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Wed, 11 Dec 2019 16:21:18 +0100 Subject: [PATCH] simplify for statement --- src/DynamicModel.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DynamicModel.cc b/src/DynamicModel.cc index a168e39e..767f4cb5 100644 --- a/src/DynamicModel.cc +++ b/src/DynamicModel.cc @@ -6681,8 +6681,8 @@ void DynamicModel::detrendEquations() { // We go backwards in the list of trend_vars, to deal correctly with I(2) processes - for (nonstationary_symbols_map_t::const_reverse_iterator it = nonstationary_symbols_map.rbegin(); - it != nonstationary_symbols_map.rend(); ++it) + for (auto it = nonstationary_symbols_map.crbegin(); + it != nonstationary_symbols_map.crend(); ++it) for (auto & equation : equations) { auto *substeq = dynamic_cast<BinaryOpNode *>(equation->detrend(it->first, it->second.first, it->second.second)); -- GitLab