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:
@ -158,9 +158,9 @@ bool Foam::functionObjects::runTimeControls::runTimeControl::execute()
|
||||
|
||||
label groupi = condition.groupID();
|
||||
|
||||
Map<label>::const_iterator conditionIter = groupMap_.find(groupi);
|
||||
auto conditionIter = groupMap_.cfind(groupi);
|
||||
|
||||
if (conditionIter == groupMap_.end())
|
||||
if (!conditionIter.found())
|
||||
{
|
||||
FatalErrorInFunction
|
||||
<< "group " << groupi << " not found in map"
|
||||
|
||||
Reference in New Issue
Block a user