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

@ -124,7 +124,7 @@ void writePoints
const auto e0Fnd = pointToObj.cfind(e[0]);
if (e0Fnd.found())
if (e0Fnd.good())
{
v0 = *e0Fnd;
}
@ -139,7 +139,7 @@ void writePoints
const auto e1Fnd = pointToObj.cfind(e[1]);
if (e1Fnd.found())
if (e1Fnd.good())
{
v1 = *e1Fnd;
}