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

@ -220,7 +220,7 @@ void Foam::forces::read(const dictionary& dict)
void Foam::forces::makeFile()
{
// Create the forces file if not already created
if (!forcesFilePtr_.valid())
if (forcesFilePtr_.empty())
{
if (debug)
{

View File

@ -93,7 +93,7 @@ void Foam::minMaxFields::read(const dictionary& dict)
void Foam::minMaxFields::makeFile()
{
// Create the minMaxFields file if not already created
if (!minMaxFieldsFilePtr_.valid())
if (minMaxFieldsFilePtr_.empty())
{
if (debug)
{