Fix a bug noticed by deba.
authorklao
Wed, 09 Mar 2005 14:23:36 +0000
changeset 1209dc9fdf77007f
parent 1208 f486d30e4e7b
child 1210 f02396423239
Fix a bug noticed by deba.
src/lemon/error.h
     1.1 --- a/src/lemon/error.h	Wed Mar 09 14:15:22 2005 +0000
     1.2 +++ b/src/lemon/error.h	Wed Mar 09 14:23:36 2005 +0000
     1.3 @@ -419,7 +419,6 @@
     1.4  
     1.5  
     1.6      virtual const char* what() const throw() {
     1.7 -      const char *mes = 0;
     1.8        try {
     1.9  	std::ostringstream ostr;
    1.10  	ostr << file << ":" << line << ": ";
    1.11 @@ -428,12 +427,9 @@
    1.12  	ostr << message;
    1.13  	if( assertion )
    1.14  	  ostr << " (assertion '" << assertion << "' failed)";
    1.15 -	mes = ostr.str().c_str();
    1.16 -	/// \bug Szerintem a 'mes'-re nem szabad hivatkozni, mert
    1.17 -	/// az elobb felszabadul. 
    1.18 +	return ostr.str().c_str();
    1.19        }
    1.20        catch(...) {}
    1.21 -      if( mes ) return mes;
    1.22        return exceptionName();
    1.23      }
    1.24