ENH: use tmp field factory methods [12] (#2723)

- applications
This commit is contained in:
Mark Olesen
2023-10-08 18:35:04 +02:00
parent ec2b1be8c5
commit 8b73d06898
32 changed files with 171 additions and 387 deletions

View File

@ -33,8 +33,8 @@ localCode
const pointField& points
)
{
tmp<pointField> tnewPoints(new pointField(points));
pointField& newPoints = tnewPoints.ref();
auto tnewPoints = tmp<pointField>::New(points);
auto& newPoints = tnewPoints.ref();
const boundBox bb(points, true);
const scalar zMin = bb.min()[vector::Z];