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:
@ -1648,13 +1648,10 @@ Foam::autoPtr<Foam::indirectPrimitivePatch> Foam::meshRefinement::makePatch
|
||||
}
|
||||
}
|
||||
|
||||
return autoPtr<indirectPrimitivePatch>
|
||||
return autoPtr<indirectPrimitivePatch>::New
|
||||
(
|
||||
new indirectPrimitivePatch
|
||||
(
|
||||
IndirectList<face>(mesh.faces(), addressing),
|
||||
mesh.points()
|
||||
)
|
||||
IndirectList<face>(mesh.faces(), addressing),
|
||||
mesh.points()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user