From 1f0fe182653e0aa6c20a3208ec31025c3e80a161 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 7 Jun 2018 01:36:52 +0200 Subject: [PATCH] Avoid using NOLINT --- include/deal.II/lac/full_matrix.templates.h | 4 ++-- include/deal.II/numerics/vector_tools.templates.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/deal.II/lac/full_matrix.templates.h b/include/deal.II/lac/full_matrix.templates.h index c16cb6d90c..b2bfd8d29c 100644 --- a/include/deal.II/lac/full_matrix.templates.h +++ b/include/deal.II/lac/full_matrix.templates.h @@ -1362,7 +1362,7 @@ FullMatrix::invert(const FullMatrix &M) { // avoid overwriting source // by destination matrix: - const FullMatrix M2 = M; // NOLINT + const FullMatrix M2 = *this; invert(M2); } else @@ -1552,7 +1552,7 @@ FullMatrix::cholesky(const FullMatrix &A) { // avoid overwriting source // by destination matrix: - const FullMatrix A2 = A; // NOLINT + const FullMatrix A2 = *this; cholesky(A2); } else diff --git a/include/deal.II/numerics/vector_tools.templates.h b/include/deal.II/numerics/vector_tools.templates.h index 67b1d22127..63c4616245 100644 --- a/include/deal.II/numerics/vector_tools.templates.h +++ b/include/deal.II/numerics/vector_tools.templates.h @@ -2867,8 +2867,8 @@ namespace VectorTools // now that we have a q_collection object with all the right // quadrature points, create an hp::FEFaceValues object that we can // use to evaluate the boundary values at - const dealii::hp::MappingCollection mapping_collection( - mapping); // NOLINT + const auto mapping_collection = + dealii::hp::MappingCollection(mapping); dealii::hp::FEFaceValues x_fe_values( mapping_collection, finite_elements, -- 2.39.5