mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: check iterator validity with good() instead of found()
- aligns better with other container checks
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user