ENH: Cleaned up hash table item found checks

This commit is contained in:
Andrew Heather
2017-05-19 11:15:35 +01:00
parent c1cbfe7a46
commit bb67ccd37d
231 changed files with 277 additions and 277 deletions

View File

@ -104,7 +104,7 @@ bool Foam::functionEntry::execute
executedictionaryIstreamMemberFunctionTable::iterator mfIter =
executedictionaryIstreamMemberFunctionTablePtr_->find(functionName);
if (mfIter == executedictionaryIstreamMemberFunctionTablePtr_->end())
if (!mfIter.found())
{
FatalErrorInFunction
<< "Unknown functionEntry '" << functionName
@ -147,7 +147,7 @@ bool Foam::functionEntry::execute
executeprimitiveEntryIstreamMemberFunctionTable::iterator mfIter =
executeprimitiveEntryIstreamMemberFunctionTablePtr_->find(functionName);
if (mfIter == executeprimitiveEntryIstreamMemberFunctionTablePtr_->end())
if (!mfIter.found())
{
FatalErrorInFunction
<< "Unknown functionEntry '" << functionName