From: Wolfgang Bangerth Date: Thu, 17 May 2001 13:00:38 +0000 (+0000) Subject: Make variables const and thus Intel C++ compiler more happy. X-Git-Tag: v8.0.0~19151 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=65d378df88eeab5b8a99a4213c6ec2ae58964e38;p=dealii.git Make variables const and thus Intel C++ compiler more happy. git-svn-id: https://svn.dealii.org/trunk@4640 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/numerics/matrices.cc b/deal.II/deal.II/source/numerics/matrices.cc index 0f4d6dfa40..f95a417258 100644 --- a/deal.II/deal.II/source/numerics/matrices.cc +++ b/deal.II/deal.II/source/numerics/matrices.cc @@ -342,7 +342,7 @@ MatrixCreator::create_boundary_mass_matrix (const Mapping &mapp const typename FunctionMap::type &boundary_functions, Vector &rhs_vector, std::vector &dof_to_boundary_mapping, - const Function *a) + const Function * const a) { const unsigned int n_threads = multithread_info.n_default_threads; Threads::ThreadManager thread_manager; @@ -695,7 +695,7 @@ void MatrixCreator::create_boundary_mass_matrix (const DoFHandler const typename FunctionMap::type &rhs, Vector &rhs_vector, std::vector &dof_to_boundary_mapping, - const Function *a) + const Function * const a) { Assert (DEAL_II_COMPAT_MAPPING, ExcCompatibility("mapping")); static const MappingQ1 mapping; diff --git a/deal.II/lac/include/lac/vector_memory.h b/deal.II/lac/include/lac/vector_memory.h index f425908033..f868349878 100644 --- a/deal.II/lac/include/lac/vector_memory.h +++ b/deal.II/lac/include/lac/vector_memory.h @@ -95,7 +95,7 @@ class PrimitiveVectorMemory : public VectorMemory /** * Return a vector to the global heap. */ - virtual void free (const Vector* v) + virtual void free (const Vector * const v) { delete v; } @@ -144,7 +144,7 @@ class GrowingVectorMemory : public VectorMemory * Return a vector into the pool * for later use. */ - virtual void free (const Vector*); + virtual void free (const Vector * const); private: /**