From cc92720d93ca5ca611dc381adbf75cca5c0373a2 Mon Sep 17 00:00:00 2001 From: danshapero Date: Thu, 24 Mar 2016 12:58:58 -0700 Subject: [PATCH] Default initializing Subscriptor in SparseMatrix move ctor --- include/deal.II/lac/sparse_matrix.templates.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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; -- 2.39.5