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:
@ -145,7 +145,7 @@ int main(int argc, char *argv[])
|
||||
{
|
||||
const fileName dictPath = args["dict"];
|
||||
|
||||
ioPtr.set
|
||||
ioPtr.reset
|
||||
(
|
||||
new IOobject
|
||||
(
|
||||
@ -163,7 +163,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
else
|
||||
{
|
||||
ioPtr.set
|
||||
ioPtr.reset
|
||||
(
|
||||
new IOobject
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user