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:
@ -196,10 +196,9 @@ public:
|
||||
const label ngbPolyPatchIndex
|
||||
) const
|
||||
{
|
||||
return autoPtr<faPatch>
|
||||
(
|
||||
new faPatch(name(), edgeLabels, index, bm, ngbPolyPatchIndex)
|
||||
);
|
||||
return
|
||||
autoPtr<faPatch>::New
|
||||
(name(), edgeLabels, index, bm, ngbPolyPatchIndex);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user