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:
@ -86,16 +86,13 @@ Foam::surfaceFeaturesExtraction::extractFromFile::features
|
||||
<< "Selecting edges based purely on geometric tests: "
|
||||
<< geometricTestOnly().c_str() << endl;
|
||||
|
||||
return autoPtr<surfaceFeatures>
|
||||
return autoPtr<surfaceFeatures>::New
|
||||
(
|
||||
new surfaceFeatures
|
||||
(
|
||||
surf,
|
||||
eMesh.points(),
|
||||
eMesh.edges(),
|
||||
1e-6, // mergeTol
|
||||
geometricTestOnly()
|
||||
)
|
||||
surf,
|
||||
eMesh.points(),
|
||||
eMesh.edges(),
|
||||
1e-6, // mergeTol
|
||||
geometricTestOnly()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -73,7 +73,7 @@ Foam::surfaceFeaturesExtraction::extractFromNone::features
|
||||
const triSurface& surf
|
||||
) const
|
||||
{
|
||||
return autoPtr<surfaceFeatures>(new surfaceFeatures(surf));
|
||||
return autoPtr<surfaceFeatures>::New(surf);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -80,16 +80,13 @@ Foam::surfaceFeaturesExtraction::extractFromSurface::features
|
||||
<< "Selecting edges based purely on geometric tests: "
|
||||
<< geometricTestOnly().c_str() << endl;
|
||||
|
||||
return autoPtr<surfaceFeatures>
|
||||
return autoPtr<surfaceFeatures>::New
|
||||
(
|
||||
new surfaceFeatures
|
||||
(
|
||||
surf,
|
||||
includedAngle(),
|
||||
0, // minLen
|
||||
0, // minElems
|
||||
geometricTestOnly()
|
||||
)
|
||||
surf,
|
||||
includedAngle(),
|
||||
0, // minLen
|
||||
0, // minElems
|
||||
geometricTestOnly()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user