autoPtr gets "empty()" method that can be used instead of "! ...valid()"

This commit is contained in:
Mark Olesen
2009-01-10 10:38:53 +01:00
parent 5ba68da75b
commit 16aaf5b54e
25 changed files with 114 additions and 98 deletions

View File

@ -136,10 +136,10 @@ surfaceSlipDisplacementPointPatchVectorField
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
const searchableSurfaces& surfaceSlipDisplacementPointPatchVectorField::
surfaces() const
const searchableSurfaces&
surfaceSlipDisplacementPointPatchVectorField::surfaces() const
{
if (!surfacesPtr_.valid())
if (surfacesPtr_.empty())
{
surfacesPtr_.reset
(