assume that new throws an exception

This commit is contained in:
Jeff Hill
2002-03-25 16:27:47 +00:00
parent 2c486479a8
commit 9e19d72cb1
11 changed files with 38 additions and 102 deletions

View File

@@ -91,12 +91,8 @@ void dbChannelIO::subscribe ( unsigned type, unsigned long count,
throw cacChannel::outOfBounds();
}
dbSubscriptionIO *pIO =
new dbSubscriptionIO ( this->serviceIO, *this,
this->addr, notify, type, count, mask, pId );
if ( ! pIO ) {
throw std::bad_alloc ();
}
new dbSubscriptionIO ( this->serviceIO, *this,
this->addr, notify, type, count, mask, pId );
}
void dbChannelIO::ioCancel ( const ioid & id )