From ec8aa9412828aadf656283a27b8a2ef10634d7c8 Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Mon, 23 Jun 2014 22:25:18 +0200 Subject: [PATCH] [Cleanup] Use "auto &&" in range-based for loops --- src/solverfactory.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/solverfactory.cc b/src/solverfactory.cc index dc0be6cf..0bdc3d3b 100644 --- a/src/solverfactory.cc +++ b/src/solverfactory.cc @@ -30,7 +30,7 @@ SolverFactory<dim, BlockProblem, Grid>::SolverFactory( linearIterationStep.setSmoother(&linearPresmoother, &linearPostsmoother); // transfer operators - for (auto &x : transferOperators) + for (auto &&x : transferOperators) x = new CompressedMultigridTransfer<Vector>; TransferOperatorAssembler<Grid>(grid) .assembleOperatorPointerHierarchy(transferOperators); @@ -45,7 +45,7 @@ SolverFactory<dim, BlockProblem, Grid>::SolverFactory( template <size_t dim, class BlockProblem, class Grid> SolverFactory<dim, BlockProblem, Grid>::~SolverFactory() { - for (auto &x : transferOperators) + for (auto &&x : transferOperators) delete x; delete multigridStep; -- GitLab