]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark some input arguments 'const'. 18357/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 14 Apr 2025 17:01:03 +0000 (11:01 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 14 Apr 2025 17:01:03 +0000 (11:01 -0600)
include/deal.II/lac/sparse_matrix_ez.h
include/deal.II/lac/sparse_matrix_ez.templates.h

index 12808c13dcf10f3c79f570aeb411403ad93878f4..e3e72197f4a25542639332163606c13181cf1fa1 100644 (file)
@@ -354,11 +354,11 @@ public:
    * efficient assembling of the matrix.
    */
   void
-  reinit(const size_type n_rows,
-         const size_type n_columns,
-         size_type       default_row_length = 0,
-         unsigned int    default_increment  = 1,
-         size_type       reserve            = 0);
+  reinit(const size_type    n_rows,
+         const size_type    n_columns,
+         const size_type    default_row_length = 0,
+         const unsigned int default_increment  = 1,
+         const size_type    reserve            = 0);
 
   /**
    * Release all memory and return to a state just like after having called
index 5fe550071c24b9b7c85bcee03436123d1fa4d325..80b414f807b265aa1f2dca06caae536ad19c236b 100644 (file)
@@ -101,11 +101,11 @@ SparseMatrixEZ<number>::operator=(const double d)
 
 template <typename number>
 void
-SparseMatrixEZ<number>::reinit(const size_type n_rows,
-                               const size_type n_cols,
-                               size_type       default_row_length,
-                               unsigned int    default_increment,
-                               size_type       reserve)
+SparseMatrixEZ<number>::reinit(const size_type    n_rows,
+                               const size_type    n_cols,
+                               const size_type    default_row_length,
+                               const unsigned int default_increment,
+                               const size_type    reserve)
 {
   clear();
 

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.