[Lemon-commits] [lemon_svn] klao: r1628 - hugo/trunk/src/lemon
Lemon SVN
svn at lemon.cs.elte.hu
Mon Nov 6 20:46:40 CET 2006
Author: klao
Date: Wed Mar 9 15:23:36 2005
New Revision: 1628
Modified:
hugo/trunk/src/lemon/error.h
Log:
Fix a bug noticed by deba.
Modified: hugo/trunk/src/lemon/error.h
==============================================================================
--- hugo/trunk/src/lemon/error.h (original)
+++ hugo/trunk/src/lemon/error.h Wed Mar 9 15:23:36 2005
@@ -419,7 +419,6 @@
virtual const char* what() const throw() {
- const char *mes = 0;
try {
std::ostringstream ostr;
ostr << file << ":" << line << ": ";
@@ -428,12 +427,9 @@
ostr << message;
if( assertion )
ostr << " (assertion '" << assertion << "' failed)";
- mes = ostr.str().c_str();
- /// \bug Szerintem a 'mes'-re nem szabad hivatkozni, mert
- /// az elobb felszabadul.
+ return ostr.str().c_str();
}
catch(...) {}
- if( mes ) return mes;
return exceptionName();
}
More information about the Lemon-commits
mailing list