mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: use dictionary::get<word>() instead of lookup() in a few places
This commit is contained in:
@ -68,7 +68,7 @@ Foam::surfaceFeaturesExtraction::method::New
|
||||
const dictionary& dict
|
||||
)
|
||||
{
|
||||
const word methodName = dict.lookup("extractionMethod");
|
||||
const word methodName(dict.get<word>("extractionMethod"));
|
||||
|
||||
auto cstrIter = dictionaryConstructorTablePtr_->cfind(methodName);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user