From 71b5aaedf9d225b2c4c29a8bff918fceb67fb951 Mon Sep 17 00:00:00 2001 From: Denis Davydov Date: Fri, 22 Jun 2018 14:28:36 +0200 Subject: [PATCH] use range loop --- source/dofs/dof_tools_constraints.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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 -- 2.39.5