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:
@ -34,8 +34,7 @@ Foam::autoPtr<Foam::helpType> Foam::helpType::New
|
||||
{
|
||||
Info<< "Selecting helpType " << helpTypeName << endl;
|
||||
|
||||
dictionaryConstructorTable::iterator cstrIter =
|
||||
dictionaryConstructorTablePtr_->find(helpTypeName);
|
||||
auto cstrIter = dictionaryConstructorTablePtr_->cfind(helpTypeName);
|
||||
|
||||
if (!cstrIter.found())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user