From 777be4a682d75dedff4b173c0178f5ead8f0b570 Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Wed, 14 Dec 2011 13:37:58 +0100 Subject: [PATCH] Cosmetics / constness --- dune/tectonic/myblockproblem.hh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dune/tectonic/myblockproblem.hh b/dune/tectonic/myblockproblem.hh index f79ee7b2..70f70581 100644 --- a/dune/tectonic/myblockproblem.hh +++ b/dune/tectonic/myblockproblem.hh @@ -140,16 +140,16 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem { it = linearization.A[row].begin(); end = linearization.A[row].end(); for (; it != end; ++it) { - int col = it.index(); - for (int i = 0; i < (*it).N(); ++i) { + int const col = it.index(); + for (int i = 0; i < it->N(); ++i) { typename Linearization::MatrixType::block_type::row_type::Iterator blockIt = (*it)[i].begin(); - typename Linearization::MatrixType::block_type::row_type::Iterator - blockEnd = (*it)[i].end(); + typename Linearization::MatrixType::block_type::row_type:: + Iterator const blockEnd = (*it)[i].end(); for (; blockIt != blockEnd; ++blockIt) if (linearization.truncation[row][i] or linearization .truncation[col][blockIt.index()]) - (*blockIt) = 0.0; + *blockIt = 0.0; } } -- GitLab