From f4da040bdc0029b7e263f06161747d6339981b20 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 25 Aug 2018 19:37:02 +0200 Subject: [PATCH] Don't pass const long int by reference --- include/deal.II/base/parameter_handler.h | 2 +- source/base/parameter_handler.cc | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) 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; -- 2.39.5