From 65d378df88eeab5b8a99a4213c6ec2ae58964e38 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 17 May 2001 13:00:38 +0000 Subject: [PATCH] Make variables const and thus Intel C++ compiler more happy. git-svn-id: https://svn.dealii.org/trunk@4640 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/numerics/matrices.cc | 4 ++-- deal.II/lac/include/lac/vector_memory.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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: /** -- 2.39.5