STYLE: use auto + cfind for constructor tables

This commit is contained in:
Mark Olesen
2018-07-19 15:55:08 +02:00
parent cdcbcf4c78
commit 34a7ea5da7
10 changed files with 28 additions and 33 deletions

View File

@ -103,8 +103,8 @@ Foam::tmp<Foam::faPatchField<Type>> Foam::faPatchField<Type>::NewCalculatedType
const faPatchField<Type2>& pf
)
{
typename patchConstructorTable::iterator patchTypeCstrIter =
patchConstructorTablePtr_->find(pf.patch().type());
auto patchTypeCstrIter =
patchConstructorTablePtr_->cfind(pf.patch().type());
if (patchTypeCstrIter.found())
{