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

@@ -41,10 +41,6 @@ dbSubscriptionIO::dbSubscriptionIO ( dbServiceIO &serviceIO, dbChannelIO &chanIO
type ( typeIn ), count ( countIn ), id ( 0u )
{
this->es = serviceIO.subscribe ( addr, chanIO, *this, maskIn );
if ( ! this->es ) {
throw std::bad_alloc ();
}
if ( pId ) {
*pId = this->getId ();
}