mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use auto and cfind to simplify selector usage (issue #512)
This commit is contained in:
@ -62,13 +62,13 @@ Foam::autoPtr<Foam::token::compound> Foam::token::compound::New
|
||||
Istream& is
|
||||
)
|
||||
{
|
||||
IstreamConstructorTable::iterator cstrIter =
|
||||
IstreamConstructorTablePtr_->find(compoundType);
|
||||
auto cstrIter = IstreamConstructorTablePtr_->cfind(compoundType);
|
||||
|
||||
if (!cstrIter.found())
|
||||
{
|
||||
FatalIOErrorInFunction(is)
|
||||
<< "Unknown compound type " << compoundType << nl << nl
|
||||
<< "Unknown compound type "
|
||||
<< compoundType << nl << nl
|
||||
<< "Valid compound types:" << endl
|
||||
<< IstreamConstructorTablePtr_->sortedToc()
|
||||
<< abort(FatalIOError);
|
||||
|
||||
Reference in New Issue
Block a user