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:
@ -75,7 +75,7 @@ Foam::Function1Types::Constant<Foam::label>::integrate
|
||||
) const
|
||||
{
|
||||
NotImplemented;
|
||||
return tmp<Field<label>>(new Field<label>(x1.size()));
|
||||
return tmp<Field<label>>::New(x1.size());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user