]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Removed use of clone(). 7457/head
authorLuca Heltai <luca.heltai@sissa.it>
Tue, 20 Nov 2018 15:41:32 +0000 (16:41 +0100)
committerLuca Heltai <luca.heltai@sissa.it>
Tue, 20 Nov 2018 15:58:13 +0000 (16:58 +0100)
source/base/function_parser.cc

index f1c30add30df5feddd03a6398f23bedcc2812929..a4446325bf5687b599f10127fccf8cbb92ab1715 100644 (file)
@@ -74,13 +74,12 @@ FunctionParser<dim>::FunctionParser(const std::string &expression,
 {
   auto constants_map = Patterns::Tools::Convert<ConstMap>::to_value(
     constants,
-    Patterns::Map(Patterns::Anything(),
-                  Patterns::Double(),
-                  0,
-                  Patterns::Map::max_int_value,
-                  ",",
-                  "=")
-      .clone());
+    std_cxx14::make_unique<Patterns::Map>(Patterns::Anything(),
+                                          Patterns::Double(),
+                                          0,
+                                          Patterns::Map::max_int_value,
+                                          ",",
+                                          "="));
   initialize(variable_names,
              expression,
              constants_map,

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.