mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: prefer autoPtr::reset() to autoPtr::set()
- in most cases already checked valid() so don't need additional check for setting an existing pointer
This commit is contained in:
@ -770,7 +770,7 @@ bool Foam::functionObjectList::read()
|
||||
);
|
||||
if (functionObjects::timeControl::entriesPresent(dict))
|
||||
{
|
||||
foPtr.set
|
||||
foPtr.reset
|
||||
(
|
||||
new functionObjects::timeControl(key, time_, dict)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user