From: wolf Date: Wed, 10 May 2006 23:09:39 +0000 (+0000) Subject: Make an input parameter const. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3216cf86363cbe7247292d1377a9a24d3bd6913;p=dealii-svn.git Make an input parameter const. git-svn-id: https://svn.dealii.org/trunk@13093 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/geometry_info.h b/deal.II/base/include/base/geometry_info.h index 21b39e82d7..dce7843557 100644 --- a/deal.II/base/include/base/geometry_info.h +++ b/deal.II/base/include/base/geometry_info.h @@ -908,7 +908,7 @@ struct GeometryInfo * For points inside the cell, this is * defined as zero. */ - static double distance_to_unit_cell(Point &p); + static double distance_to_unit_cell (const Point &p); /** * For each face of the reference diff --git a/deal.II/base/source/geometry_info.cc b/deal.II/base/source/geometry_info.cc index 647e0426b7..a636d2236e 100644 --- a/deal.II/base/source/geometry_info.cc +++ b/deal.II/base/source/geometry_info.cc @@ -437,7 +437,7 @@ GeometryInfo::project_to_unit_cell (Point &p) template double -GeometryInfo::distance_to_unit_cell (Point &p) +GeometryInfo::distance_to_unit_cell (const Point &p) { double result = 0.0;