From a404e27730f5943d8ad999d1acfabe9994aa8759 Mon Sep 17 00:00:00 2001 From: wolf Date: Tue, 11 Mar 2003 20:00:34 +0000 Subject: [PATCH] Constify some variables. git-svn-id: https://svn.dealii.org/trunk@7323 0785d39b-7218-0410-832d-ea1e28bc413d --- .../lac/include/lac/block_sparse_matrix_ez.templates.h | 7 +++++-- deal.II/lac/include/lac/sparse_matrix_ez.h | 8 ++++---- deal.II/lac/include/lac/sparse_matrix_ez.templates.h | 8 ++++---- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/deal.II/lac/include/lac/block_sparse_matrix_ez.templates.h b/deal.II/lac/include/lac/block_sparse_matrix_ez.templates.h index b3eb6cdf78..18e88af269 100644 --- a/deal.II/lac/include/lac/block_sparse_matrix_ez.templates.h +++ b/deal.II/lac/include/lac/block_sparse_matrix_ez.templates.h @@ -21,7 +21,8 @@ template -BlockSparseMatrixEZ::BlockSparseMatrixEZ () : +BlockSparseMatrixEZ::BlockSparseMatrixEZ () + : row_indices (0), column_indices (0) {}; @@ -30,7 +31,9 @@ BlockSparseMatrixEZ::BlockSparseMatrixEZ () : template BlockSparseMatrixEZ:: -BlockSparseMatrixEZ (unsigned int rows, unsigned int cols) : +BlockSparseMatrixEZ (const unsigned int rows, + const unsigned int cols) + : row_indices (rows), column_indices (cols) {}; diff --git a/deal.II/lac/include/lac/sparse_matrix_ez.h b/deal.II/lac/include/lac/sparse_matrix_ez.h index 64a3ccc32e..59b5acd690 100644 --- a/deal.II/lac/include/lac/sparse_matrix_ez.h +++ b/deal.II/lac/include/lac/sparse_matrix_ez.h @@ -391,10 +391,10 @@ class SparseMatrixEZ : public Subscriptor * efficient assembling of the * matrix. */ - void reinit (unsigned int n_rows, - unsigned int n_columns, - unsigned int default_row_length = Entry::invalid, - unsigned int default_increment = Entry::invalid); + void reinit (const unsigned int n_rows, + const unsigned int n_columns, + const unsigned int default_row_length = Entry::invalid, + const unsigned int default_increment = Entry::invalid); /** * Release all memory and return diff --git a/deal.II/lac/include/lac/sparse_matrix_ez.templates.h b/deal.II/lac/include/lac/sparse_matrix_ez.templates.h index 097673036a..13f27fa01f 100644 --- a/deal.II/lac/include/lac/sparse_matrix_ez.templates.h +++ b/deal.II/lac/include/lac/sparse_matrix_ez.templates.h @@ -64,10 +64,10 @@ SparseMatrixEZ::operator= (const SparseMatrixEZ& m) template void -SparseMatrixEZ::reinit(unsigned int n_rows, - unsigned int n_cols, - unsigned int default_row_length, - unsigned int default_increment) +SparseMatrixEZ::reinit(const unsigned int n_rows, + const unsigned int n_cols, + const unsigned int default_row_length, + const unsigned int default_increment) { clear(); if (default_row_length == Entry::invalid) -- 2.39.5