mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
STYLE: use 'return nullptr' for empty autoPtr/tmp returns
- both autoPtr and tmp are defined with an implicit construct from nullptr (but with explicit construct from a pointer to null). Thus is it safe to use 'nullptr' when returning an empty autoPtr or tmp.
This commit is contained in:
@ -109,7 +109,7 @@ public:
|
||||
autoPtr<faceSelection> clone() const
|
||||
{
|
||||
NotImplemented;
|
||||
return autoPtr<faceSelection>();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -86,7 +86,7 @@ public:
|
||||
autoPtr<faceSelection> clone() const
|
||||
{
|
||||
NotImplemented;
|
||||
return autoPtr<faceSelection>();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -79,7 +79,7 @@ public:
|
||||
autoPtr<faceSelection> clone() const
|
||||
{
|
||||
NotImplemented;
|
||||
return autoPtr<faceSelection>();
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user