summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-05-09 08:39:19 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2017-05-09 08:39:19 +0200
commit8e9d44524830c290f2fc83f08e188ba37a7740d4 (patch)
tree0fe1ce709f6f2912c4f786de7d2b0141d618af09 /tools.h
parent7d1dde01baad1e387a93833498f45167ff504acd (diff)
downloadvdr-8e9d44524830c290f2fc83f08e188ba37a7740d4.tar.gz
vdr-8e9d44524830c290f2fc83f08e188ba37a7740d4.tar.bz2
cListObject now implements a private copy constructor and assignment operator, to keep derived objects from calling them implicitly
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools.h b/tools.h
index 7941da5d..3bd7f9d2 100644
--- a/tools.h
+++ b/tools.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.h 4.7 2017/05/09 08:33:37 kls Exp $
+ * $Id: tools.h 4.8 2017/05/09 08:37:23 kls Exp $
*/
#ifndef __TOOLS_H
@@ -479,6 +479,8 @@ class cListObject {
friend class cListGarbageCollector;
private:
cListObject *prev, *next;
+ cListObject(const cListObject &ListObject) { abort(); } // no copy constructor!
+ cListObject& operator= (const cListObject &ListObject) { abort(); return *this; } // no assignment operator!
public:
cListObject(void);
virtual ~cListObject();