From: bangerth Date: Thu, 22 Mar 2007 20:17:41 +0000 (+0000) Subject: Make a few arguments constant for more efficiency and consistency. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5fdc6018eecfc9dd0cd4514c81188f749d989d0;p=dealii-svn.git Make a few arguments constant for more efficiency and consistency. git-svn-id: https://svn.dealii.org/trunk@14594 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/function_parser.h b/deal.II/base/include/base/function_parser.h index 80f5d073e4..10eb0158be 100644 --- a/deal.II/base/include/base/function_parser.h +++ b/deal.II/base/include/base/function_parser.h @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2005, 2006 by the deal.II authors +// Copyright (C) 2005, 2006, 2007 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -360,9 +360,9 @@ class FunctionParser : public Function * default for this parameter is false, * i.e. use radians and not degrees. */ - void initialize (const std::string vars, - const std::vector expressions, - const ConstMap constants, + void initialize (const std::string &vars, + const std::vector &expressions, + const ConstMap &constants, const bool time_dependent = false, const bool use_degrees = false); @@ -378,9 +378,9 @@ class FunctionParser : public Function * parsed does not match the number of * components of the base function. */ - void initialize (const std::string vars, - const std::string expression, - const ConstMap constants, + void initialize (const std::string &vars, + const std::string &expression, + const ConstMap &constants, const bool time_dependent = false, const bool use_degrees = false); diff --git a/deal.II/base/source/function_parser.cc b/deal.II/base/source/function_parser.cc index a98a7a4e11..7953dc5dd4 100644 --- a/deal.II/base/source/function_parser.cc +++ b/deal.II/base/source/function_parser.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2005, 2006 by the deal.II authors +// Copyright (C) 2005, 2006, 2007 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -54,9 +54,9 @@ FunctionParser::~FunctionParser() #ifndef DEAL_II_DISABLE_PARSER template -void FunctionParser::initialize (const std::string variables, - const std::vector expressions, - const std::map constants, +void FunctionParser::initialize (const std::string &variables, + const std::vector &expressions, + const std::map &constants, const bool time_dependent, const bool use_degrees) { @@ -126,9 +126,9 @@ void FunctionParser::initialize (const std::string variables, template -void FunctionParser::initialize (const std::string variables, - const std::string expression, - const std::map constants, +void FunctionParser::initialize (const std::string &variables, + const std::string &expression, + const std::map &constants, const bool time_dependent, const bool use_degrees) {