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:
@ -111,17 +111,14 @@ Foam::functionObjects::streamLineBase::wallPatch() const
|
||||
}
|
||||
}
|
||||
|
||||
return autoPtr<indirectPrimitivePatch>
|
||||
return autoPtr<indirectPrimitivePatch>::New
|
||||
(
|
||||
new indirectPrimitivePatch
|
||||
IndirectList<face>
|
||||
(
|
||||
IndirectList<face>
|
||||
(
|
||||
mesh_.faces(),
|
||||
addressing
|
||||
),
|
||||
mesh_.points()
|
||||
)
|
||||
mesh_.faces(),
|
||||
addressing
|
||||
),
|
||||
mesh_.points()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user