From: Daniel Arndt Date: Sat, 25 Aug 2018 17:37:02 +0000 (+0200) Subject: Don't pass const long int by reference X-Git-Tag: v9.1.0-rc1~776^2~5 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4da040bdc0029b7e263f06161747d6339981b20;p=dealii.git Don't pass const long int by reference --- diff --git a/include/deal.II/base/parameter_handler.h b/include/deal.II/base/parameter_handler.h index 6e71821ace..2a98bf5ca2 100644 --- a/include/deal.II/base/parameter_handler.h +++ b/include/deal.II/base/parameter_handler.h @@ -1289,7 +1289,7 @@ public: * the new value does not conform to the pattern for this entry. */ void - set(const std::string &entry_name, const long int &new_value); + set(const std::string &entry_name, const long int new_value); /** * Change the value presently stored for entry_name to the one diff --git a/source/base/parameter_handler.cc b/source/base/parameter_handler.cc index 742203ec2b..780d1bbe76 100644 --- a/source/base/parameter_handler.cc +++ b/source/base/parameter_handler.cc @@ -1018,8 +1018,7 @@ ParameterHandler::set(const std::string &entry_string, const double &new_value) void -ParameterHandler::set(const std::string &entry_string, - const long int & new_value) +ParameterHandler::set(const std::string &entry_string, const long int new_value) { std::ostringstream s; s << new_value;