]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid gcc-4.9 error 9285/head
authorDaniel Arndt <arndtd@ornl.gov>
Sat, 11 Jan 2020 05:43:49 +0000 (00:43 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Sat, 11 Jan 2020 05:49:48 +0000 (00:49 -0500)
source/grid/manifold_lib.cc

index 135c2ca15df61d234fb9a765504a2c0c9cd1a5ec..fd5562b2cba5d1a84c1498d414ab4b7ee4b2a0f9 100644 (file)
@@ -1418,16 +1418,13 @@ FunctionManifold<dim, spacedim, chartdim>::clone() const
     }
   else
     {
-      auto manifold_clone =
-        std_cxx14::make_unique<FunctionManifold<dim, spacedim, chartdim>>(
-          *push_forward_function,
-          *pull_back_function,
-          this->get_periodicity(),
-          tolerance);
-
       Assert(owns_pointers == false, ExcNotImplemented());
 
-      return manifold_clone;
+      return std_cxx14::make_unique<FunctionManifold<dim, spacedim, chartdim>>(
+        *push_forward_function,
+        *pull_back_function,
+        this->get_periodicity(),
+        tolerance);
     }
 }
 

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.