better variable name

This commit is contained in:
Jeff Hill
2001-01-25 02:10:28 +00:00
parent 7a560a88b1
commit d3dc9bee2b
2 changed files with 8 additions and 8 deletions

View File

@@ -146,11 +146,11 @@ cac::~cac ()
//
{
epicsAutoMutex autoMutex ( this->defaultMutex );
tsDLIterBD < cacLocalChannelIO > iter ( this->localChanList.first () );
while ( iter.valid () ) {
tsDLIterBD < cacLocalChannelIO > pnext = iter.itemAfter ();
iter->destroy ();
iter = pnext;
tsDLIterBD < cacLocalChannelIO > lclChan ( this->localChanList.first () );
while ( lclChan.valid () ) {
tsDLIterBD < cacLocalChannelIO > pnext = lclChan.itemAfter ();
lclChan->destroy ();
lclChan = pnext;
}
}

View File

@@ -23,9 +23,9 @@ cacChannel::cacChannel () : pChannelIO (0)
cacChannel::~cacChannel ()
{
cacChannelIO *pIO = this->pChannelIO;
if ( pIO ) {
pIO->destroy ();
cacChannelIO *pChanIO = this->pChannelIO;
if ( pChanIO ) {
pChanIO->destroy ();
}
}