mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Corrected TimeDataEntry copy constructor - mantis #753
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2012 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -60,8 +60,13 @@ Foam::TimeDataEntry<Type>::TimeDataEntry
|
||||
:
|
||||
time_(tde.time_),
|
||||
name_(tde.name_),
|
||||
entry_(tde.entry_->clone().ptr())
|
||||
{}
|
||||
entry_()
|
||||
{
|
||||
if (entry_.valid())
|
||||
{
|
||||
entry_.reset(tde.entry_->clone().ptr());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
Reference in New Issue
Block a user