From: Denis Davydov Date: Fri, 22 Jun 2018 12:28:36 +0000 (+0200) Subject: use range loop X-Git-Tag: v9.1.0-rc1~1002^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71b5aaedf9d225b2c4c29a8bff918fceb67fb951;p=dealii.git use range loop --- diff --git a/source/dofs/dof_tools_constraints.cc b/source/dofs/dof_tools_constraints.cc index 147b237165..4cd35045f9 100644 --- a/source/dofs/dof_tools_constraints.cc +++ b/source/dofs/dof_tools_constraints.cc @@ -1080,10 +1080,7 @@ namespace DoFTools // note that even though we may visit a face twice if the neighboring // cells are equally refined, we can only visit each face with hanging // nodes once - typename DoFHandlerType::active_cell_iterator cell = dof_handler - .begin_active(), - endc = dof_handler.end(); - for (; cell != endc; ++cell) + for (const auto cell : dof_handler.active_cell_iterators()) { // artificial cells can at best neighbor ghost cells, but we're not // interested in these interfaces