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:
@ -100,10 +100,10 @@ bool Foam::functionEntry::execute
|
||||
return true;
|
||||
}
|
||||
|
||||
auto mfIter =
|
||||
executedictionaryIstreamMemberFunctionTablePtr_->cfind(functionName);
|
||||
auto* mfuncPtr =
|
||||
executedictionaryIstreamMemberFunctionTable(functionName);
|
||||
|
||||
if (!mfIter.found())
|
||||
if (!mfuncPtr)
|
||||
{
|
||||
FatalErrorInFunction
|
||||
<< "Unknown functionEntry '" << functionName
|
||||
@ -114,7 +114,7 @@ bool Foam::functionEntry::execute
|
||||
<< exit(FatalError);
|
||||
}
|
||||
|
||||
return mfIter()(parentDict, is);
|
||||
return mfuncPtr(parentDict, is);
|
||||
}
|
||||
|
||||
|
||||
@ -139,13 +139,10 @@ bool Foam::functionEntry::execute
|
||||
return true;
|
||||
}
|
||||
|
||||
auto mfIter =
|
||||
executeprimitiveEntryIstreamMemberFunctionTablePtr_->cfind
|
||||
(
|
||||
functionName
|
||||
);
|
||||
auto* mfuncPtr =
|
||||
executeprimitiveEntryIstreamMemberFunctionTable(functionName);
|
||||
|
||||
if (!mfIter.found())
|
||||
if (!mfuncPtr)
|
||||
{
|
||||
FatalErrorInFunction
|
||||
<< "Unknown functionEntry '" << functionName
|
||||
@ -156,7 +153,7 @@ bool Foam::functionEntry::execute
|
||||
<< exit(FatalError);
|
||||
}
|
||||
|
||||
return mfIter()(parentDict, entry, is);
|
||||
return mfuncPtr(parentDict, entry, is);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user