summaryrefslogtreecommitdiff
path: root/include/cppunit
diff options
context:
space:
mode:
authorBaptiste Lepilleur <gaiacrtn@free.fr>2001-09-23 22:58:09 +0000
committerBaptiste Lepilleur <gaiacrtn@free.fr>2001-09-23 22:58:09 +0000
commit4738362b086adad7963a26abaf3ec8b052ef6374 (patch)
treec432c012ee1ffe6fc0a0c4bb0aec378a1f61e33d /include/cppunit
parent8270594d083e6fb7cdcba52351e7febb546ac299 (diff)
downloadcppunit-4738362b086adad7963a26abaf3ec8b052ef6374.tar.gz
Include/cppunit/TestAssert.
include/cppunit/TestAssert.h : changed header order to remove warning on VC++ * include/cppunit/TestCaller.h : bugfix: threw 'new Exception' instead of 'Exception'.
Diffstat (limited to 'include/cppunit')
-rw-r--r--include/cppunit/TestAssert.h2
-rw-r--r--include/cppunit/TestCaller.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/cppunit/TestAssert.h b/include/cppunit/TestAssert.h
index 3459fc4..141bcdb 100644
--- a/include/cppunit/TestAssert.h
+++ b/include/cppunit/TestAssert.h
@@ -1,9 +1,9 @@
#ifndef CPPUNIT_TESTASSERT_H
#define CPPUNIT_TESTASSERT_H
-#include <string>
#include <cppunit/Portability.h>
#include <cppunit/Exception.h>
+#include <string>
namespace CppUnit {
diff --git a/include/cppunit/TestCaller.h b/include/cppunit/TestCaller.h
index ab7b63f..caf17bc 100644
--- a/include/cppunit/TestCaller.h
+++ b/include/cppunit/TestCaller.h
@@ -32,7 +32,7 @@ struct ExpectedExceptionTraits
#else
std::string message( "Expected exception but got none" );
#endif
- throw new Exception( message );
+ throw Exception( message );
}
};