mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: remove reliance on the Xfer class (issue #639)
This class is largely a pre-C++11 holdover. It is now possible to simply use move construct/assignment directly. In a few rare cases (eg, polyMesh::resetPrimitives) it has been replaced by an autoPtr.
This commit is contained in:
@ -80,7 +80,7 @@ void Foam::searchableSurfaceModifiers::cut::triangulate
|
||||
patchI
|
||||
);
|
||||
}
|
||||
cutSurf = triSurface(tris.xfer(), patches, pts.xfer());
|
||||
cutSurf = triSurface(tris, patches, pts, true);
|
||||
}
|
||||
|
||||
|
||||
@ -331,12 +331,12 @@ bool Foam::searchableSurfaceModifiers::cut::modify
|
||||
{
|
||||
if (volTypes[i] == volumeType::INSIDE)
|
||||
{
|
||||
nInside++;
|
||||
++nInside;
|
||||
}
|
||||
}
|
||||
|
||||
// Add a patch for inside the box
|
||||
if (nInside > 0 && surf3.patches().size() > 0)
|
||||
if (nInside && surf3.patches().size() > 0)
|
||||
{
|
||||
geometricSurfacePatchList newPatches(surf3.patches());
|
||||
label sz = newPatches.size();
|
||||
@ -362,7 +362,7 @@ bool Foam::searchableSurfaceModifiers::cut::modify
|
||||
}
|
||||
}
|
||||
pointField newPoints(surf3.points());
|
||||
surf = triSurface(newTris.xfer(), newPatches, newPoints.xfer());
|
||||
surf = triSurface(newTris, newPatches, newPoints, true);
|
||||
|
||||
changed = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user