tmpNrc: Updated to use clone

This commit is contained in:
Henry Weller
2017-07-14 09:32:02 +01:00
committed by Andrew Heather
parent 68d879b5e4
commit 14d2a1efcf
2 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/*--------------------------------------------------------------------r-------*\
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |

View File

@ -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();
}
}