]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Don't pass const long int by reference
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 25 Aug 2018 17:37:02 +0000 (19:37 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sun, 26 Aug 2018 10:48:59 +0000 (12:48 +0200)
include/deal.II/base/parameter_handler.h
source/base/parameter_handler.cc

index 6e71821ace8df3c811a5ae81c8fe51f0b99dc6b4..2a98bf5ca2090ea1be02182cfe9d619933f31823 100644 (file)
@@ -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 <tt>entry_name</tt> to the one
index 742203ec2be052a2195a7bc5e6212f444bf6ad9e..780d1bbe766d0899ab48c63411828abb643fe69f 100644 (file)
@@ -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;

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.