From: Matthias Maier Date: Sat, 11 May 2019 21:01:08 +0000 (-0500) Subject: use range-based for loop X-Git-Tag: v9.1.0-rc1~48^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6df98ff1302a71085f244c1253ee77aa5464068;p=dealii.git use range-based for loop --- diff --git a/examples/step-6/step-6.cc b/examples/step-6/step-6.cc index 18bb3b4768..583a8de938 100644 --- a/examples/step-6/step-6.cc +++ b/examples/step-6/step-6.cc @@ -284,10 +284,7 @@ void Step6::assemble_system() std::vector local_dof_indices(dofs_per_cell); - typename DoFHandler::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()) { cell_matrix = 0; cell_rhs = 0;