mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: replace uses of autoPtr::empty() with bool check (#1775)
- less clutter using plain tests with the bool operator:
(!ptr) vs (ptr.empty())
(ptr) vs (!ptr.empty())
This commit is contained in:
@ -65,7 +65,7 @@ Foam::functionObjects::streamLineBase::trackDirTypeNames
|
||||
const Foam::word&
|
||||
Foam::functionObjects::streamLineBase::sampledSetAxis() const
|
||||
{
|
||||
if (sampledSetPtr_.empty())
|
||||
if (!sampledSetPtr_)
|
||||
{
|
||||
sampledSetPoints();
|
||||
}
|
||||
@ -77,7 +77,7 @@ Foam::functionObjects::streamLineBase::sampledSetAxis() const
|
||||
const Foam::sampledSet&
|
||||
Foam::functionObjects::streamLineBase::sampledSetPoints() const
|
||||
{
|
||||
if (sampledSetPtr_.empty())
|
||||
if (!sampledSetPtr_)
|
||||
{
|
||||
sampledSetPtr_ = sampledSet::New
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user