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

@ -158,7 +158,7 @@ int main(int argc, char *argv[])
{
const fileName dictPath = args["dict"];
ioPtr.set
ioPtr.reset
(
new IOobject
(
@ -176,7 +176,7 @@ int main(int argc, char *argv[])
}
else
{
ioPtr.set
ioPtr.reset
(
new IOobject
(