From: prascle Date: Wed, 14 Apr 2004 07:47:44 +0000 (+0000) Subject: PR: bug 5693 correction X-Git-Tag: Ecole_Ete_a1~16 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=00d5a040678abdf431b64b3f3c377efe7648e113;p=modules%2Fkernel.git PR: bug 5693 correction --- diff --git a/src/Utils/Utils_SALOME_Exception.cxx b/src/Utils/Utils_SALOME_Exception.cxx index 06f4a26f4..8f26985a1 100644 --- a/src/Utils/Utils_SALOME_Exception.cxx +++ b/src/Utils/Utils_SALOME_Exception.cxx @@ -90,8 +90,7 @@ SALOME_Exception::~SALOME_Exception() throw () if ( _text ) { delete [] _text ; - char *& txt = (char*)_text ; - txt = 0 ; + _text = 0 ; } ASSERT(_text==NULL) ; } diff --git a/src/Utils/Utils_SALOME_Exception.hxx b/src/Utils/Utils_SALOME_Exception.hxx index d368ed867..9202df72e 100644 --- a/src/Utils/Utils_SALOME_Exception.hxx +++ b/src/Utils/Utils_SALOME_Exception.hxx @@ -43,7 +43,7 @@ private : SALOME_Exception( void ); protected : - const char* _text ; // pointeur constant et zone pointee constante !!!! + const char* _text ; // non constant pointer but read only char variable public : SALOME_Exception( const char *text, const char *fileName=0, const unsigned int lineNumber=0 );