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:
@ -6,6 +6,7 @@
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
Copyright (C) 2012-2016 OpenFOAM Foundation
|
||||
Copyright (C) 2020 OpenCFD Ltd.
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
@ -625,7 +626,7 @@ void Foam::DistributedDelaunayMesh<Triangulation>::sync
|
||||
return;
|
||||
}
|
||||
|
||||
if (allBackgroundMeshBounds_.empty())
|
||||
if (!allBackgroundMeshBounds_)
|
||||
{
|
||||
distributeBoundBoxes(bb);
|
||||
}
|
||||
@ -810,7 +811,7 @@ void Foam::DistributedDelaunayMesh<Triangulation>::sync(const boundBox& bb)
|
||||
return;
|
||||
}
|
||||
|
||||
if (allBackgroundMeshBounds_.empty())
|
||||
if (!allBackgroundMeshBounds_)
|
||||
{
|
||||
distributeBoundBoxes(bb);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user