From: Daniel Arndt Date: Fri, 13 Oct 2017 10:35:10 +0000 (+0200) Subject: Improve description of passing ownership X-Git-Tag: v9.0.0-rc1~955^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F5234%2Fhead;p=dealii.git Improve description of passing ownership --- diff --git a/source/fe/fe_enriched.cc b/source/fe/fe_enriched.cc index 10aecc077b..99f750ce60 100644 --- a/source/fe/fe_enriched.cc +++ b/source/fe/fe_enriched.cc @@ -296,8 +296,8 @@ FE_Enriched::setup_data (std::unique_ptr::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::InternalData *data_fesystem = static_cast::InternalData *> (fes_data.release()); InternalData *data = new InternalData(std::unique_ptr::InternalData>(data_fesystem));