From 19ece2d57753ddb397f7c489f8f10c748e6b9a7a Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 28 Mar 2005 17:04:43 +0000 Subject: [PATCH] There is no point in passing doubles by reference. git-svn-id: https://svn.dealii.org/trunk@10245 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/tensor.h | 8 ++++---- deal.II/base/include/base/tensor_base.h | 10 +++++----- 2 files changed, 9 insertions(+), 9 deletions(-) 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