COMP: corrected code removed in 51c2329f97

This commit is contained in:
Andrew Heather 2020-06-08 08:06:10 +01:00
parent bcc1a49937
commit 636d2688a5

View File

@ -67,8 +67,13 @@ Foam::TimeFunction1<Type>::TimeFunction1
:
time_(rhs.time_),
name_(rhs.name_),
entry_(rhs.entry_) // steal/reuse (missing clone!)
{}
entry_(nullptr) // steal/reuse (missing clone!)
{
if (rhs.entry_)
{
entry_.reset(rhs.entry_->clone().ptr());
}
}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //