From: Daniel Arndt Date: Wed, 6 Jun 2018 23:36:52 +0000 (+0200) Subject: Avoid using NOLINT X-Git-Tag: v9.1.0-rc1~1064^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F6722%2Fhead;p=dealii.git Avoid using NOLINT --- 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,