mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use auto + cfind for constructor tables
This commit is contained in:
@ -49,10 +49,9 @@ Foam::autoPtr<Foam::engineTime> Foam::engineTime::New
|
||||
|
||||
Info<< "Selecting engine type " << engineType << endl;
|
||||
|
||||
dictionaryConstructorTable::iterator cstrIter =
|
||||
dictionaryConstructorTablePtr_->find(engineType);
|
||||
auto cstrIter = dictionaryConstructorTablePtr_->cfind(engineType);
|
||||
|
||||
if (cstrIter == dictionaryConstructorTablePtr_->end())
|
||||
if (!cstrIter.found())
|
||||
{
|
||||
FatalErrorInFunction
|
||||
<< "Unknown engine type "
|
||||
|
||||
Reference in New Issue
Block a user