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:
@ -98,15 +98,12 @@ autoPtr<faceCoupleInfo> determineCoupledFaces
|
||||
{
|
||||
if (fullMatch || masterMesh.nCells() == 0)
|
||||
{
|
||||
return autoPtr<faceCoupleInfo>
|
||||
return autoPtr<faceCoupleInfo>::New
|
||||
(
|
||||
new faceCoupleInfo
|
||||
(
|
||||
masterMesh,
|
||||
meshToAdd,
|
||||
mergeDist, // Absolute merging distance
|
||||
true // Matching faces identical
|
||||
)
|
||||
masterMesh,
|
||||
meshToAdd,
|
||||
mergeDist, // Absolute merging distance
|
||||
true // Matching faces identical
|
||||
);
|
||||
}
|
||||
else
|
||||
@ -215,20 +212,17 @@ autoPtr<faceCoupleInfo> determineCoupledFaces
|
||||
}
|
||||
addFaces.shrink();
|
||||
|
||||
return autoPtr<faceCoupleInfo>
|
||||
return autoPtr<faceCoupleInfo>::New
|
||||
(
|
||||
new faceCoupleInfo
|
||||
(
|
||||
masterMesh,
|
||||
masterFaces,
|
||||
meshToAdd,
|
||||
addFaces,
|
||||
mergeDist, // Absolute merging distance
|
||||
true, // Matching faces identical?
|
||||
false, // If perfect match are faces already ordered
|
||||
// (e.g. processor patches)
|
||||
false // are faces each on separate patch?
|
||||
)
|
||||
masterMesh,
|
||||
masterFaces,
|
||||
meshToAdd,
|
||||
addFaces,
|
||||
mergeDist, // Absolute merging distance
|
||||
true, // Matching faces identical?
|
||||
false, // If perfect match are faces already ordered
|
||||
// (e.g. processor patches)
|
||||
false // are faces each on separate patch?
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user