tmpNrc: Updated to use clone
This commit is contained in:
parent
11e4a71463
commit
96b8cfc541
2 changed files with 4 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
/*--------------------------------------------------------------------r-------*\
|
||||
/*---------------------------------------------------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
/*--------------------------------------------------------------------r-------*\
|
||||
/*---------------------------------------------------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2016 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2016-2017 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
|
|
@ -175,7 +175,7 @@ inline T* Foam::tmpNrc<T>::ptr() const
|
|||
}
|
||||
else
|
||||
{
|
||||
return new T(*ptr_);
|
||||
return ptr_->clone().ptr();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue