From: danshapero Date: Thu, 24 Mar 2016 19:58:58 +0000 (-0700) Subject: Default initializing Subscriptor in SparseMatrix move ctor X-Git-Tag: v8.5.0-rc1~1167^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc92720d93ca5ca611dc381adbf75cca5c0373a2;p=dealii.git Default initializing Subscriptor in SparseMatrix move ctor --- diff --git a/include/deal.II/lac/sparse_matrix.templates.h b/include/deal.II/lac/sparse_matrix.templates.h index 0cda654f7a..d95404deef 100644 --- a/include/deal.II/lac/sparse_matrix.templates.h +++ b/include/deal.II/lac/sparse_matrix.templates.h @@ -73,13 +73,13 @@ SparseMatrix::SparseMatrix (const SparseMatrix &m) template SparseMatrix::SparseMatrix (SparseMatrix &&m) : - Subscriptor (m), + Subscriptor(), cols(m.cols), val(m.val), max_len(m.max_len) { - m.cols = 0; - m.val = 0; + m.cols = nullptr; + m.val = nullptr; m.max_len = 0; } #endif @@ -109,8 +109,8 @@ SparseMatrix::operator = (SparseMatrix &&m) val = m.val; max_len = m.max_len; - m.cols = 0; - m.val = 0; + m.cols = nullptr; + m.val = nullptr; m.max_len = 0; return *this;