]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Initialize all member variables in a copy constructor. 3382/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Wed, 2 Nov 2016 21:09:48 +0000 (15:09 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Wed, 2 Nov 2016 21:09:48 +0000 (15:09 -0600)
include/deal.II/lac/sparse_matrix_ez.templates.h

index 4b522b166edc7fd539b5cf1e15dea6fb1fdf36e4..39109a5115b6c1536e42e0762668842c73afd251 100644 (file)
@@ -1,6 +1,6 @@
 // ---------------------------------------------------------------------
 //
-// Copyright (C) 2002 - 2015 by the deal.II authors
+// Copyright (C) 2002 - 2016 by the deal.II authors
 //
 // This file is part of the deal.II library.
 //
@@ -41,7 +41,9 @@ template <typename number>
 SparseMatrixEZ<number>::SparseMatrixEZ(const SparseMatrixEZ<number> &m)
   :
   Subscriptor (m),
-  n_columns (0)
+  n_columns (0),
+  increment (m.increment),
+  saved_default_row_length (m.saved_default_row_length)
 {
   Assert (m.m()==0 && m.n()==0,
           ExcMessage("This constructor can only be called if the provided argument "

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.