From: David Wells Date: Thu, 5 Dec 2019 16:10:23 +0000 (-0500) Subject: Use a ranged-for loop. X-Git-Tag: v9.2.0-rc1~800^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e05e3f36a51f12e7e62bcba71e0c9a855b13daea;p=dealii.git Use a ranged-for loop. --- diff --git a/source/base/function_parser.cc b/source/base/function_parser.cc index c9f27cd1b9..7758c114b4 100644 --- a/source/base/function_parser.cc +++ b/source/base/function_parser.cc @@ -281,12 +281,9 @@ FunctionParser::init_muparser() const { fp.get().emplace_back(new mu::Parser()); - for (std::map::const_iterator constant = - constants.begin(); - constant != constants.end(); - ++constant) + for (const auto &constant : constants) { - fp.get()[component]->DefineConst(constant->first, constant->second); + fp.get()[component]->DefineConst(constant.first, constant.second); } for (unsigned int iv = 0; iv < var_names.size(); ++iv)