]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Improve description of passing ownership 5234/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 13 Oct 2017 10:35:10 +0000 (12:35 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Fri, 13 Oct 2017 10:35:10 +0000 (12:35 +0200)
source/fe/fe_enriched.cc

index 10aecc077b9764f00917b9068afca2f25d8fb355..99f750ce60511c0cde086e1f0b391d809cafdc5f 100644 (file)
@@ -296,8 +296,8 @@ FE_Enriched<dim,spacedim>::setup_data (std::unique_ptr<typename FiniteElement<di
   Assert ((dynamic_cast<typename FESystem<dim,spacedim>::InternalData *> (fes_data.get()) != nullptr),
           ExcInternalError());
 
-  // FESystem::InternalData will be aggregated (owned) by
-  // our InternalData.
+  // Pass ownership of the FiniteElement::InternalDataBase object
+  // that fes_data points to, to the new InternalData object.
   typename FESystem<dim,spacedim>::InternalData *data_fesystem =
     static_cast<typename FESystem<dim,spacedim>::InternalData *> (fes_data.release());
   InternalData *data = new InternalData(std::unique_ptr<typename FESystem<dim,spacedim>::InternalData>(data_fesystem));

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.