summaryrefslogtreecommitdiff
path: root/filter.c
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 /filter.c
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 'filter.c')
-rw-r--r--filter.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/filter.c b/filter.c
index aa91c1f1..742041a7 100644
--- a/filter.c
+++ b/filter.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: filter.c 4.2 2015/07/25 10:59:57 kls Exp $
+ * $Id: filter.c 4.3 2017/05/09 08:37:23 kls Exp $
*/
#include "filter.h"
@@ -71,6 +71,15 @@ cFilterData::cFilterData(u_short Pid, u_char Tid, u_char Mask, bool Sticky)
sticky = Sticky;
}
+cFilterData& cFilterData::operator= (const cFilterData &FilterData)
+{
+ pid = FilterData.pid;
+ tid = FilterData.tid;
+ mask = FilterData.mask;
+ sticky = FilterData.sticky;
+ return *this;
+}
+
bool cFilterData::Is(u_short Pid, u_char Tid, u_char Mask)
{
return pid == Pid && tid == Tid && mask == Mask;