mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: use singleton method for accessing runtime selection
STYLE: use alias to mark partialFaceAreaWeightAMI deprecation after v2012
This commit is contained in:
@ -5,7 +5,7 @@
|
||||
\\ / A nd | www.openfoam.com
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2019 OpenCFD Ltd.
|
||||
Copyright (C) 2019-2021 OpenCFD Ltd.
|
||||
Copyright (C) 2019-2020 DLR
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -46,9 +46,9 @@ Foam::autoPtr<Foam::implicitFunction> Foam::implicitFunction::New
|
||||
const dictionary& dict
|
||||
)
|
||||
{
|
||||
auto cstrIter = dictConstructorTablePtr_->cfind(implicitFunctionType);
|
||||
auto* ctorPtr = dictConstructorTable(implicitFunctionType);
|
||||
|
||||
if (!cstrIter.found())
|
||||
if (!ctorPtr)
|
||||
{
|
||||
FatalIOErrorInLookup
|
||||
(
|
||||
@ -59,7 +59,7 @@ Foam::autoPtr<Foam::implicitFunction> Foam::implicitFunction::New
|
||||
) << exit(FatalIOError);
|
||||
}
|
||||
|
||||
return autoPtr<implicitFunction>(cstrIter()(dict));
|
||||
return autoPtr<implicitFunction>(ctorPtr(dict));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user