Skip to content
Snippets Groups Projects
Commit 5d4d1cd2 authored by Henry Weller's avatar Henry Weller Committed by Andrew Heather
Browse files

tmpNrc: Updated to use clone

parent ab51dc5c
Branches
Tags
1 merge request!144Integration openfoam.org
/*--------------------------------------------------------------------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();
}
}
......
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