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

@ -292,7 +292,7 @@ public:
//- Access to communication.
const List<labelPair>& schedule() const
{
if (!schedulePtr_.valid())
if (schedulePtr_.empty())
{
calcMapping();
}
@ -307,7 +307,7 @@ public:
Pout<< "Asking for sendLabels." << endl;
}
if (!sendLabelsPtr_.valid())
if (sendLabelsPtr_.empty())
{
if (debug)
{
@ -326,7 +326,7 @@ public:
Pout<< "Asking for receiveFaceLabels." << endl;
}
if (!receiveFaceLabelsPtr_.valid())
if (receiveFaceLabelsPtr_.empty())
{
if (debug)
{