mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use autoPtr::New and tmp::New for simple return types
This commit is contained in:
@ -110,10 +110,7 @@ template<class Type>
|
||||
inline Foam::autoPtr<Foam::RectangularMatrix<Type>>
|
||||
Foam::RectangularMatrix<Type>::clone() const
|
||||
{
|
||||
return autoPtr<RectangularMatrix<Type>>
|
||||
(
|
||||
new RectangularMatrix<Type>(*this)
|
||||
);
|
||||
return autoPtr<RectangularMatrix<Type>>::New(*this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user