From 1c76b5d80a692a2fa500d1f9800aa5510553017a Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 29 Aug 2001 17:54:37 +0000 Subject: [PATCH] cosmetic --- src/cas/generic/casStrmClient.cc | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/src/cas/generic/casStrmClient.cc b/src/cas/generic/casStrmClient.cc index 7f463b213..d70def3db 100644 --- a/src/cas/generic/casStrmClient.cc +++ b/src/cas/generic/casStrmClient.cc @@ -49,27 +49,27 @@ static const caHdr nill_msg = {0u,0u,0u,0u,0u,0u}; // // casStrmClient::casStrmClient() // -casStrmClient::casStrmClient (caServerI &serverInternal) : - casClient (serverInternal, 1) +casStrmClient::casStrmClient ( caServerI &serverInternal ) : + casClient ( serverInternal, 1 ) { - this->lock(); + this->lock (); - this->ctx.getServer()->installClient (this); + this->ctx.getServer()->installClient ( this ); this->pHostName = new char [1u]; - if (!this->pHostName) { + if ( ! this->pHostName ) { throw S_cas_noMemory; } *this->pHostName = '\0'; this->pUserName = new char [1u]; - if (!this->pUserName) { - free (this->pHostName); + if ( ! this->pUserName ) { + free ( this->pHostName ); throw S_cas_noMemory; } *this->pUserName= '\0'; - this->unlock(); + this->unlock (); } // @@ -84,13 +84,9 @@ casStrmClient::~casStrmClient() // this->ctx.getServer()->removeClient(this); - if (this->pUserName) { - delete [] this->pUserName; - } + delete [] this->pUserName; - if (this->pHostName) { - delete [] this->pHostName; - } + delete [] this->pHostName; // // delete all channel attached