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:
@ -418,10 +418,7 @@ public:
|
||||
//- Clone
|
||||
autoPtr<dynamicIndexedOctree<Type>> clone() const
|
||||
{
|
||||
return autoPtr<dynamicIndexedOctree<Type>>
|
||||
(
|
||||
new dynamicIndexedOctree<Type>(*this)
|
||||
);
|
||||
return autoPtr<dynamicIndexedOctree<Type>>::New(*this);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user