summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-06-16 12:43:34 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-06-16 12:43:34 +0200
commit6ad5f9b35c32d696424f241530d3c0595c608c8a (patch)
tree4bb989a987add700fdf82b83f505ed84f461d576
parent41f69b1c2d2de8e1fdb6ef0023021d8edea114ca (diff)
TestDecorator assumes ownership and is not allowed to create copies
-rw-r--r--include/cppunit/extensions/TestCaseDecorator.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/cppunit/extensions/TestCaseDecorator.h b/include/cppunit/extensions/TestCaseDecorator.h
index 3a15ba9..effde25 100644
--- a/include/cppunit/extensions/TestCaseDecorator.h
+++ b/include/cppunit/extensions/TestCaseDecorator.h
@@ -13,7 +13,7 @@ CPPUNIT_NS_BEGIN
* of a test class without subclassing the test. Instead, one can
* subclass the decorater and use it to wrap the test class.
*
- * Does not assume ownership of the test it decorates
+ * Assumes ownership of the test it decorates
*/
class CPPUNIT_API TestCaseDecorator : public TestCase
{
@@ -31,6 +31,13 @@ public:
protected:
TestCase *m_test;
+
+private:
+
+ //prevent the creation of copy c'tor and operator=
+ TestCaseDecorator( const TestCaseDecorator& );
+ TestCaseDecorator& operator=( const TestCaseDecorator& );
+
};