]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid using bare 'new'. 11476/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 5 Jan 2021 21:19:50 +0000 (14:19 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 5 Jan 2021 21:19:50 +0000 (14:19 -0700)
source/grid/tria.cc

index a5b33c7f9cc6096bf643734ccda881e3a10040e9..ee6b142ea19abda69ef56914c4aaf3ccc6bd7772 100644 (file)
@@ -1742,11 +1742,12 @@ namespace internal
       std::unique_ptr<Policy<dim, spacedim>>
       clone() override
       {
-        return std::unique_ptr<Policy<dim, spacedim>>(
-          new PolicyWrapper<dim, spacedim, T>());
+        return std::make_unique<PolicyWrapper<dim, spacedim, T>>();
       }
     };
 
+
+
     /**
      * A class into which we put many of the functions that implement
      * functionality of the Triangulation class. The main reason for this

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.