dictionary label lookup: simplified syntax using the type templated lookup function
Replaced
readLabel(dict.lookup("name"))
with
dict.lookup<label>("name)
This commit is contained in:
@ -52,7 +52,7 @@ Foam::functionObjects::FUNCTIONOBJECT::FUNCTIONOBJECT
|
||||
fvMeshFunctionObject(name, runTime, dict),
|
||||
wordData_(dict.lookupOrDefault<word>("wordData", "defaultWord")),
|
||||
scalarData_(readScalar(dict.lookup("scalarData"))),
|
||||
labelData_(readLabel(dict.lookup("labelData")))
|
||||
labelData_(dict.lookup<label>("labelData"))
|
||||
{
|
||||
read(dict);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user