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

@ -47,7 +47,7 @@ Foam::AMIMethod<SourcePatch, TargetPatch>::New
typename componentsConstructorTable::iterator cstrIter =
componentsConstructorTablePtr_->find(methodName);
if (cstrIter == componentsConstructorTablePtr_->end())
if (!cstrIter.found())
{
FatalErrorInFunction
<< "Unknown AMIMethod type "

View File

@ -40,7 +40,7 @@ Foam::autoPtr<Foam::coordinateSystem> Foam::coordinateSystem::New
dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(coordType);
if (cstrIter == dictionaryConstructorTablePtr_->end())
if (!cstrIter.found())
{
FatalIOErrorInFunction
(

View File

@ -46,7 +46,7 @@ Foam::autoPtr<Foam::searchableSurface> Foam::searchableSurface::New
dictConstructorTable::iterator cstrIter =
dictConstructorTablePtr_->find(searchableSurfaceType);
if (cstrIter == dictConstructorTablePtr_->end())
if (!cstrIter.found())
{
FatalErrorInFunction
<< "Unknown searchableSurface type " << searchableSurfaceType

View File

@ -80,7 +80,7 @@ Foam::autoPtr<Foam::topoSetSource> Foam::topoSetSource::New
wordConstructorTable::iterator cstrIter =
wordConstructorTablePtr_->find(topoSetSourceType);
if (cstrIter == wordConstructorTablePtr_->end())
if (!cstrIter.found())
{
FatalErrorInFunction
<< "Unknown topoSetSource type " << topoSetSourceType
@ -104,7 +104,7 @@ Foam::autoPtr<Foam::topoSetSource> Foam::topoSetSource::New
istreamConstructorTable::iterator cstrIter =
istreamConstructorTablePtr_->find(topoSetSourceType);
if (cstrIter == istreamConstructorTablePtr_->end())
if (!cstrIter.found())
{
FatalErrorInFunction
<< "Unknown topoSetSource type " << topoSetSourceType

View File

@ -54,7 +54,7 @@ Foam::autoPtr<Foam::topoSet> Foam::topoSet::New
wordConstructorTable::iterator cstrIter =
wordConstructorTablePtr_->find(setType);
if (cstrIter == wordConstructorTablePtr_->end())
if (!cstrIter.found())
{
FatalErrorInFunction
<< "Unknown set type " << setType
@ -80,7 +80,7 @@ Foam::autoPtr<Foam::topoSet> Foam::topoSet::New
sizeConstructorTable::iterator cstrIter =
sizeConstructorTablePtr_->find(setType);
if (cstrIter == sizeConstructorTablePtr_->end())
if (!cstrIter.found())
{
FatalErrorInFunction
<< "Unknown set type " << setType
@ -106,7 +106,7 @@ Foam::autoPtr<Foam::topoSet> Foam::topoSet::New
setConstructorTable::iterator cstrIter =
setConstructorTablePtr_->find(setType);
if (cstrIter == setConstructorTablePtr_->end())
if (!cstrIter.found())
{
FatalErrorInFunction
<< "Unknown set type " << setType