From b72d01f2485d164899c92557d4414815f6490b22 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robert=20Kl=C3=B6fkorn?= <robertk@dune-project.org>
Date: Thu, 17 Mar 2005 23:28:05 +0000
Subject: [PATCH] Entity in localFunction and init of LocalFunction is const
 now.

[[Imported from SVN: r1682]]
---
 fem/discfuncarray.hh               | 4 ++--
 fem/discfuncarray/discfuncarray.cc | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/fem/discfuncarray.hh b/fem/discfuncarray.hh
index bf3b87124..25b6633ea 100644
--- a/fem/discfuncarray.hh
+++ b/fem/discfuncarray.hh
@@ -93,7 +93,7 @@ namespace Dune {
 
     //! update LocalFunction to given Entity en
     template <class EntityType>
-    void localFunction ( EntityType &en,
+    void localFunction ( const EntityType &en,
                          LocalFunctionArray<DiscreteFunctionSpaceType> & lf);
 
     //! we use the default implementation
@@ -237,7 +237,7 @@ namespace Dune {
 
   protected:
     //! update local function for given Entity
-    template <class EntityType > bool init ( EntityType &en ) const;
+    template <class EntityType > bool init ( const EntityType &en ) const;
 
     //! get pointer to next LocalFunction
     MyType * getNext() const;
diff --git a/fem/discfuncarray/discfuncarray.cc b/fem/discfuncarray/discfuncarray.cc
index f8e0dea7f..2ac943247 100644
--- a/fem/discfuncarray/discfuncarray.cc
+++ b/fem/discfuncarray/discfuncarray.cc
@@ -91,7 +91,7 @@ namespace Dune
   template<class DiscreteFunctionSpaceType > template <class EntityType>
   inline void
   DiscFuncArray< DiscreteFunctionSpaceType >::
-  localFunction ( EntityType &en , LocalFunctionArray < DiscreteFunctionSpaceType > &lf )
+  localFunction ( const EntityType &en , LocalFunctionArray < DiscreteFunctionSpaceType > &lf )
   {
     lf.init ( en );
   }
@@ -518,7 +518,7 @@ namespace Dune
 
   template<class DiscreteFunctionSpaceType > template <class EntityType>
   inline bool LocalFunctionArray < DiscreteFunctionSpaceType >::
-  init (EntityType &en ) const
+  init (const EntityType &en ) const
   {
     if(!uniform_ || !init_)
     {
-- 
GitLab