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:
Mark Olesen
2017-11-22 19:11:11 +01:00
parent e96cbd9050
commit 416a3790ea
34 changed files with 141 additions and 124 deletions

View File

@ -770,7 +770,7 @@ bool Foam::functionObjectList::read()
);
if (functionObjects::timeControl::entriesPresent(dict))
{
foPtr.set
foPtr.reset
(
new functionObjects::timeControl(key, time_, dict)
);