Commit 14d2a1ef authored by Henry Weller's avatar Henry Weller Committed by Andrew Heather
Browse files

tmpNrc: Updated to use clone

parent 68d879b5
/*--------------------------------------------------------------------r-------*\
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
......
/*--------------------------------------------------------------------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();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment