mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use direct iteration for HashSet
- The iterator for a HashSet dereferences directly to its key.
- Eg,
for (const label patchi : patchSet)
{
...
}
vs.
forAllConstIter(labelHashSet, patchSet, iter)
{
const label patchi = iter.key();
...
}
This commit is contained in:
@ -244,9 +244,9 @@ bool Foam::functionObjects::ensightWrite::write()
|
||||
}
|
||||
}
|
||||
|
||||
forAllConstIter(wordHashSet, candidates, iter)
|
||||
for (const word& cand : candidates)
|
||||
{
|
||||
process(iter.key());
|
||||
process(cand);
|
||||
}
|
||||
|
||||
Log << " )" << endl;
|
||||
|
||||
Reference in New Issue
Block a user