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:
@ -346,7 +346,7 @@ bool Foam::functionObjects::streamLine::read(const dictionary& dict)
|
||||
if (!dict.found("direction") && dict.found("trackForward"))
|
||||
{
|
||||
trackDirection_ =
|
||||
dict.lookupType<bool>("trackForward")
|
||||
dict.lookup<bool>("trackForward")
|
||||
? trackDirection::forward
|
||||
: trackDirection::backward;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user