From: bangerth Date: Thu, 19 Oct 2006 00:37:54 +0000 (+0000) Subject: Move functions local to these files into an anonymous namespace X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07be82df83e6ce98fe4de6ba73ce4ac93d3ff450;p=dealii-svn.git Move functions local to these files into an anonymous namespace git-svn-id: https://svn.dealii.org/trunk@14022 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/source/quadrature.cc b/deal.II/base/source/quadrature.cc index dbc6011ccb..499f67cac9 100644 --- a/deal.II/base/source/quadrature.cc +++ b/deal.II/base/source/quadrature.cc @@ -21,17 +21,23 @@ #include -// Integer to the power of dim -template -inline unsigned int dimpow (unsigned int n) +namespace { - unsigned int result = n; - for (unsigned int i=1;i + inline unsigned int dimpow (unsigned int n) + { + unsigned int result = n; + for (unsigned int i=1;i Quadrature<0>::Quadrature (const unsigned int) : n_quadrature_points(0) diff --git a/deal.II/base/source/quadrature_lib.cc b/deal.II/base/source/quadrature_lib.cc index 919af8037c..0eaff84c08 100644 --- a/deal.II/base/source/quadrature_lib.cc +++ b/deal.II/base/source/quadrature_lib.cc @@ -24,11 +24,13 @@ // for all lower dimensions as well. That is why in this file the check // is for deal_II_dimension >= any_number and not for == - -template -number abs (const number a) +namespace { - return ((a>0) ? a : -a); + template + number abs (const number a) + { + return ((a>0) ? a : -a); + } }