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:
@ -93,14 +93,11 @@ Foam::autoPtr<Foam::mapDistribute> Foam::smoothAlignmentSolver::buildReferredMap
|
||||
indices.transfer(dynIndices);
|
||||
|
||||
List<Map<label>> compactMap;
|
||||
return autoPtr<mapDistribute>
|
||||
return autoPtr<mapDistribute>::New
|
||||
(
|
||||
new mapDistribute
|
||||
(
|
||||
globalIndexing,
|
||||
indices,
|
||||
compactMap
|
||||
)
|
||||
globalIndexing,
|
||||
indices,
|
||||
compactMap
|
||||
);
|
||||
}
|
||||
|
||||
@ -157,14 +154,11 @@ Foam::autoPtr<Foam::mapDistribute> Foam::smoothAlignmentSolver::buildMap
|
||||
}
|
||||
|
||||
List<Map<label>> compactMap;
|
||||
return autoPtr<mapDistribute>
|
||||
return autoPtr<mapDistribute>::New
|
||||
(
|
||||
new mapDistribute
|
||||
(
|
||||
globalIndexing,
|
||||
pointPoints,
|
||||
compactMap
|
||||
)
|
||||
globalIndexing,
|
||||
pointPoints,
|
||||
compactMap
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user