mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
tmpNrc: Updated to use clone
This commit is contained in:
committed by
Andrew Heather
parent
68d879b5e4
commit
14d2a1efcf
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user