]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use an anonymous namespace. 1463/head
authorDavid Wells <wellsd2@rpi.edu>
Sat, 29 Aug 2015 17:35:20 +0000 (13:35 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Sat, 29 Aug 2015 21:44:26 +0000 (17:44 -0400)
This function is only called at one place in the same translation unit.

source/base/polynomials_bernstein.cc

index 942d3e93140cb59b18cbce9c2eefd0410d54a69c..1cb8c568344cfba47ff929961a7f7024257dffcc 100644 (file)
@@ -6,7 +6,7 @@
 
 DEAL_II_NAMESPACE_OPEN
 
-namespace Binomial
+namespace
 {
   template <typename number>
   std::vector<number>
@@ -31,7 +31,7 @@ PolynomialsBernstein<number>:: PolynomialsBernstein (
   const unsigned int index, const unsigned int degree)
   :
   Polynomials::Polynomial<number>(
-    Binomial::get_bernstein_coefficients<number>(index, degree))
+    get_bernstein_coefficients<number>(index, degree))
 {
 }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.