summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--include/cppunit/Exception.h3
-rw-r--r--src/cppunit/Exception.cpp2
3 files changed, 7 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 36ade9a..5118dff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-10-19 Baptiste Lepilleur <gaiacrtn@free.fr>
+
+ * include/cppunit/Exception.h:
+ * src/cppunit/Exception.cpp: what(), added back the throw() qualifier.
+
2001-10-14 Baptiste Lepilleur <gaiacrtn@free.fr>
* include/cppunitui/* : added, Qt TestRunner.
diff --git a/include/cppunit/Exception.h b/include/cppunit/Exception.h
index a051ce9..f94eca5 100644
--- a/include/cppunit/Exception.h
+++ b/include/cppunit/Exception.h
@@ -46,8 +46,7 @@ public:
Exception& operator= (const Exception& other);
-// const char *what() const throw ();
- const char *what() const;
+ const char *what() const throw ();
SourceLine sourceLine() const;
diff --git a/src/cppunit/Exception.cpp b/src/cppunit/Exception.cpp
index f449152..add261a 100644
--- a/src/cppunit/Exception.cpp
+++ b/src/cppunit/Exception.cpp
@@ -78,7 +78,7 @@ Exception::operator =( const Exception& other )
/// Return descriptive message
const char*
-Exception::what() const
+Exception::what() const throw()
{
return m_message.c_str ();
}