From: Wolfgang Bangerth Date: Mon, 28 Mar 2005 17:04:43 +0000 (+0000) Subject: There is no point in passing doubles by reference. X-Git-Tag: v8.0.0~14302 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19ece2d57753ddb397f7c489f8f10c748e6b9a7a;p=dealii.git There is no point in passing doubles by reference. git-svn-id: https://svn.dealii.org/trunk@10245 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/tensor.h b/deal.II/base/include/base/tensor.h index dec4268eb8..ac72d4a938 100644 --- a/deal.II/base/include/base/tensor.h +++ b/deal.II/base/include/base/tensor.h @@ -128,13 +128,13 @@ class Tensor * i.e. multiply all components by * factor. */ - Tensor & operator *= (const double &factor); + Tensor & operator *= (const double factor); /** * Scale the vector by * 1/factor. */ - Tensor & operator /= (const double &factor); + Tensor & operator /= (const double factor); /** * Add two tensors. If possible, you @@ -333,7 +333,7 @@ Tensor::operator -= (const Tensor &p) template inline Tensor & -Tensor::operator *= (const double &s) +Tensor::operator *= (const double s) { for (unsigned int i=0; i::operator *= (const double &s) template inline Tensor & -Tensor::operator /= (const double &s) +Tensor::operator /= (const double s) { for (unsigned int i=0; i * factor, i.e. multiply all * coordinates by factor. */ - Tensor<1,dim> & operator *= (const double &factor); + Tensor<1,dim> & operator *= (const double factor); /** * Scale the vector by 1/factor. */ - Tensor<1,dim> & operator /= (const double &factor); + Tensor<1,dim> & operator /= (const double factor); /** * Returns the scalar product of @@ -520,7 +520,7 @@ Tensor<1,dim> & Tensor<1,dim>::operator -= (const Tensor<1,dim> &p) template inline -Tensor<1,dim> & Tensor<1,dim>::operator *= (const double &s) +Tensor<1,dim> & Tensor<1,dim>::operator *= (const double s) { for (unsigned int i=0; i & Tensor<1,dim>::operator *= (const double &s) template inline -Tensor<1,dim> & Tensor<1,dim>::operator /= (const double &s) +Tensor<1,dim> & Tensor<1,dim>::operator /= (const double s) { for (unsigned int i=0; i