]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Mark an input argument as const.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 30 Nov 2009 20:04:54 +0000 (20:04 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 30 Nov 2009 20:04:54 +0000 (20:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@20187 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/lac/include/lac/constraint_matrix.h

index cc30e90b62d933c18f726558da65ac60ef1db9ed..424debc7487685a4c1f9f19d3de4cf76e8b48891 100644 (file)
@@ -1654,7 +1654,7 @@ class ConstraintMatrix : public Subscriptor
                                      * index of line @p line in the vector
                                      * lines_cache using local_lines.
                                      */
-    unsigned int calculate_line_index(unsigned int line) const;
+    unsigned int calculate_line_index (const unsigned int line) const;
 
                                     /**
                                      * Return @p true if the weight of an
@@ -2003,7 +2003,7 @@ void ConstraintMatrix::get_dof_values (const VectorType  &global_vector,
 
 
 inline unsigned int
-ConstraintMatrix::calculate_line_index(unsigned int line) const
+ConstraintMatrix::calculate_line_index (const unsigned int line) const
 {
                                   //IndexSet is unused (serial case)
   if (!local_lines.size())

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.