]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix parameter_handler_double_02 4513/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 13 Jun 2017 15:05:57 +0000 (17:05 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Tue, 13 Jun 2017 15:05:57 +0000 (17:05 +0200)
tests/parameter_handler/parameter_handler_double_02.cc

index 1b60e2b141493b49117a3b1966099fdd16ae6a67..7d105a005c447b233b6f07e240c21cd57228fa55 100644 (file)
 void test(const std::string &desc)
 {
   deallog << desc << " -> ";
-  Patterns::Double *c = Patterns::Double::create(desc);
+  std::unique_ptr<dealii::Patterns::Double> c = Patterns::Double::create(desc);
   if (!c)
     {
       deallog << "NULL" << std::endl;
       return;
     }
   deallog << c->description() << std::endl;
-  delete c;
 }
 
 

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.