STYLE: check iterator validity with good() instead of found()

- aligns better with other container checks
This commit is contained in:
Mark Olesen
2023-02-06 15:52:55 +01:00
parent 750381bd99
commit d597b3f959
132 changed files with 342 additions and 340 deletions

View File

@ -335,7 +335,7 @@ void Foam::faMeshReconstructor::calcAddressing
const auto fnd = globalEdgeMapping.cfind(globalEdge);
if (fnd.found())
if (fnd.good())
{
faEdgeProcAddr_[edgei] = fnd.val();
}
@ -409,7 +409,7 @@ void Foam::faMeshReconstructor::calcAddressing
const label globalEdgei = faEdgeProcAddr_[patchEdgei];
const auto fnd = remapGlobal.cfind(globalEdgei);
if (fnd.found())
if (fnd.good())
{
newEdgeProcAddr[edgei] = fnd.val();
++edgei;