ENH: Cleaned up hash table item found checks
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user