]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Initialize a member variable. 3385/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 3 Nov 2016 01:44:26 +0000 (19:44 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 3 Nov 2016 01:44:26 +0000 (19:44 -0600)
include/deal.II/lac/filtered_matrix.h

index b01e150579222834d2228c6859187b4b54242a7c..534ae54453de29c3ab0cf3f999c3c1d7fccd87bf 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2001 - 2015 by the deal.II authors
+// Copyright (C) 2001 - 2016 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -341,7 +341,7 @@ public:
    */
   template <typename MatrixType>
   FilteredMatrix (const MatrixType &matrix,
-                  bool              expect_constrained_source = false);
+                  const bool        expect_constrained_source = false);
 
   /**
    * Copy operator. Take over matrix and constraints from the other object.
@@ -359,7 +359,7 @@ public:
    */
   template <typename MatrixType>
   void initialize (const MatrixType &m,
-                   bool              expect_constrained_source = false);
+                   const bool        expect_constrained_source = false);
 
   /**
    * Delete all constraints and the matrix pointer.
@@ -713,6 +713,8 @@ FilteredMatrix<VectorType>::initialize (const MatrixType &m, bool ecs)
 template <typename VectorType>
 inline
 FilteredMatrix<VectorType>::FilteredMatrix ()
+  :
+  expect_constrained_source (false)
 {}
 
 
@@ -733,7 +735,10 @@ template <typename VectorType>
 template <typename MatrixType>
 inline
 FilteredMatrix<VectorType>::
-FilteredMatrix (const MatrixType &m, bool ecs)
+FilteredMatrix (const MatrixType &m,
+                const bool ecs)
+  :
+  expect_constrained_source (false)
 {
   initialize (m, ecs);
 }

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.