mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: rename/adjust local pointer naming and handling
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2011-2016 OpenFOAM Foundation
|
Copyright (C) 2011-2016 OpenFOAM Foundation
|
||||||
Copyright (C) 2017 OpenCFD Ltd.
|
Copyright (C) 2017-2020 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -214,8 +214,8 @@ Foam::polyTopoChanger::topoChangeRequest() const
|
|||||||
// Collect changes from all modifiers
|
// Collect changes from all modifiers
|
||||||
const PtrList<polyMeshModifier>& topoChanges = *this;
|
const PtrList<polyMeshModifier>& topoChanges = *this;
|
||||||
|
|
||||||
polyTopoChange* refPtr(new polyTopoChange(mesh()));
|
auto ptr = autoPtr<polyTopoChange>::New(mesh());
|
||||||
polyTopoChange& ref = *refPtr;
|
polyTopoChange& ref = ptr.ref();
|
||||||
|
|
||||||
forAll(topoChanges, morphI)
|
forAll(topoChanges, morphI)
|
||||||
{
|
{
|
||||||
@ -225,7 +225,7 @@ Foam::polyTopoChanger::topoChangeRequest() const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return autoPtr<polyTopoChange>(refPtr);
|
return ptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user