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

@ -195,7 +195,7 @@ Foam::functionObjects::runTimePostPro::pathline::New
dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(pathlineType);
if (cstrIter == dictionaryConstructorTablePtr_->end())
if (!cstrIter.found())
{
FatalErrorInFunction
<< "Unknown pathline type "

View File

@ -153,7 +153,7 @@ Foam::autoPtr<Foam::functionObjects::runTimePostPro::pointData> Foam::functionOb
dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(pointDataType);
if (cstrIter == dictionaryConstructorTablePtr_->end())
if (!cstrIter.found())
{
FatalErrorInFunction
<< "Unknown pointData type "

View File

@ -220,7 +220,7 @@ Foam::functionObjects::runTimePostPro::surface::New
dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(surfaceType);
if (cstrIter == dictionaryConstructorTablePtr_->end())
if (!cstrIter.found())
{
FatalErrorInFunction
<< "Unknown surface type "