]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid using NOLINT 6722/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 6 Jun 2018 23:36:52 +0000 (01:36 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Wed, 6 Jun 2018 23:36:52 +0000 (01:36 +0200)
include/deal.II/lac/full_matrix.templates.h
include/deal.II/numerics/vector_tools.templates.h

index c16cb6d90c71b4b71db90f08746176dc4c57a4f2..b2bfd8d29c40bd1e1ba3aa80c0963920f118336d 100644 (file)
@@ -1362,7 +1362,7 @@ FullMatrix<number>::invert(const FullMatrix<number2> &M)
     {
       // avoid overwriting source
       // by destination matrix:
-      const FullMatrix<number2> M2 = M; // NOLINT
+      const FullMatrix<number> M2 = *this;
       invert(M2);
     }
   else
@@ -1552,7 +1552,7 @@ FullMatrix<number>::cholesky(const FullMatrix<number2> &A)
     {
       // avoid overwriting source
       // by destination matrix:
-      const FullMatrix<number2> A2 = A; // NOLINT
+      const FullMatrix<number> A2 = *this;
       cholesky(A2);
     }
   else
index 67b1d22127698d4edb8f197226bb1a4a860fe6ac..63c461624545e67fdef3d000653045dcc9246aec 100644 (file)
@@ -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<dim, spacedim> mapping_collection(
-            mapping); // NOLINT
+          const auto mapping_collection =
+            dealii::hp::MappingCollection<dim, spacedim>(mapping);
           dealii::hp::FEFaceValues<dim, spacedim> x_fe_values(
             mapping_collection,
             finite_elements,

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.