From 50d268538ee714e8e3f88bba0e952c33a75d3777 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 5 Sep 2015 11:49:56 +0200 Subject: Added a missing 'const' to cReceiver::Receive(), to protect the given Data from being modified --- recorder.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'recorder.h') diff --git a/recorder.h b/recorder.h index 4e7848a6..2fc7ef18 100644 --- a/recorder.h +++ b/recorder.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recorder.h 3.1 2015/01/15 14:27:02 kls Exp $ + * $Id: recorder.h 4.1 2015/09/05 11:46:23 kls Exp $ */ #ifndef __RECORDER_H @@ -35,7 +35,7 @@ protected: ///< member of the cReceiver class) from your own destructor in order ///< to properly get a call to Activate(false) when your object is ///< destroyed. - virtual void Receive(uchar *Data, int Length); + virtual void Receive(const uchar *Data, int Length); virtual void Action(void); public: cRecorder(const char *FileName, const cChannel *Channel, int Priority); -- cgit v1.2.3