From 00d5a040678abdf431b64b3f3c377efe7648e113 Mon Sep 17 00:00:00 2001 From: prascle Date: Wed, 14 Apr 2004 07:47:44 +0000 Subject: [PATCH] PR: bug 5693 correction --- src/Utils/Utils_SALOME_Exception.cxx | 3 +-- src/Utils/Utils_SALOME_Exception.hxx | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) 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 ); -- 2.39.2