mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Cleaned up hash table item found checks
This commit is contained in:
@ -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 "
|
||||
|
||||
@ -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
|
||||
(
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user