mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: avoid unrestricted dictionary lookup in conversion, sampling, surfMesh
- aids with detection of excess tokens (issue #762) - deprecated dictionary::operator[] in favour of the lookup() method which offers more flexibilty and clarity of purpose. Additionally, the read<> and get<> forms should generally be used instead anyhow.
This commit is contained in:
@ -325,8 +325,8 @@ Foam::shortestPathSet::shortestPathSet
|
||||
)
|
||||
:
|
||||
sampledSet(name, mesh, searchEngine, dict),
|
||||
insidePoints_(dict.lookup("insidePoints")),
|
||||
outsidePoints_(dict.lookup("outsidePoints"))
|
||||
insidePoints_(dict.get<pointField>("insidePoints")),
|
||||
outsidePoints_(dict.get<pointField>("outsidePoints"))
|
||||
{
|
||||
genSamples(mesh);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user